-
Notifications
You must be signed in to change notification settings - Fork 93
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
Field* constructor tidy #1385
Merged
Merged
Field* constructor tidy #1385
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
Some of these aren't technically true but are really required, e.g. the destructor calls `Array::release()` which calls `Array::store()` which might throw. If that happens, the only thing we can do is abort anyway -- which is what will happen if `noexcept` is violated.
NOTE: changes default value of `boundaryIsSet` from `true` to `false`. Shouldn't affect anything though as child classes all immediately set it to `false` in their ctors
Allows removing `#if CHECK > 0` bracketed code from ctors
d7919
reviewed
Nov 19, 2018
d7919
reviewed
Nov 19, 2018
d7919
reviewed
Nov 19, 2018
d7919
reviewed
Nov 19, 2018
bendudson
previously approved these changes
Nov 19, 2018
bendudson
approved these changes
Nov 19, 2018
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.
swap
and move constructors forField2D/3D
Field::boundaryIsSet
because this wastrue
when theField2D/3D
constructors were immediately setting it tofalse
.= default
noexcept
onArray
I'm going to remove
checkData
from the copy constructors, and possiblyField*::operator=
, but I would like to hear some opposing view points to that (see #1361)