-
Notifications
You must be signed in to change notification settings - Fork 189
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Factor out and test memcpy serialization #3291
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
… removed special overload for boost::optional
Codecov Report
@@ Coverage Diff @@
## python #3291 +/- ##
=======================================
+ Coverage 85% 86% +<1%
=======================================
Files 534 536 +2
Lines 25510 25574 +64
=======================================
+ Hits 21937 22004 +67
+ Misses 3573 3570 -3
Continue to review full report at Codecov.
|
fweik
changed the title
Factor out and test memcpy serialization
WIP: Factor out and test memcpy serialization
Nov 4, 2019
fweik
changed the title
WIP: Factor out and test memcpy serialization
Factor out and test memcpy serialization
Nov 4, 2019
RudolfWeeber
approved these changes
Nov 4, 2019
bors r=RudolfWeeber |
bors bot
added a commit
that referenced
this pull request
Nov 4, 2019
3291: Factor out and test memcpy serialization r=RudolfWeeber a=fweik Description of changes: - This splits off the memcpy serialization used in the ghost communication and adds unit test for it. - Added customization point to opt-in to memcpy serialization for types that are not [TriviallyCopyable](https://en.cppreference.com/w/cpp/named_req/TriviallyCopyable), but serializes to a bounded size, like `boost::optional`. This is so we can use `optional` and `variant` in `ParticleProperties`, which is planned. 3292: Pypresso: Remove "test -a" and quote $@ r=jngrad a=hirschsn Description of changes: - Remove `test -a` since calls to test with more than 4 arguments are unspecified: https://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html - Quote `$@` to avoid splitting $@. Currently `./pypresso --gdb "test me.py"` will fail because tries to find the file `test`. Quoting avoids this. PR Checklist ------------ - [ ] Tests? - [ ] Interface - [ ] Core - [ ] Docs? Co-authored-by: Florian Weik <[email protected]> Co-authored-by: Steffen Hirschmann <[email protected]>
Build succeeded |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description of changes:
for it.
to a bounded size, like
boost::optional
. This is so we can useoptional
andvariant
inParticleProperties
, which is planned.