-
Notifications
You must be signed in to change notification settings - Fork 791
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
Fixes #1984
base: develop
Are you sure you want to change the base?
Fixes #1984
Conversation
Maybe nitpicking, by when trying cpp20, this this deprecation warning now also pops up; I think this is the only one as I was able to compile using cpp20 before these constraint-features got merged. Not sure if it makes sense to add a cpp20 pipeline, AFAIK it would compile except for this.
|
@varunagrawal the fix is easy: just replace that line with
BTW, there are some other occurrences of [] in an example and in some tests. In these (few) cases just narrowing the scope (e.g. [=] -> [nearZero] in testSO3.cpp) should resolve this. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe also merge in develop after #1983
I'll approve after suggested [=] fixes and CI changes, please re-request a review from me then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome, just some doubt about removing default copy constructor.
@@ -60,8 +60,6 @@ class TestOptionalStruct { | |||
TestOptionalStruct() = default; | |||
TestOptionalStruct(const int& opt) | |||
: opt(opt) {} | |||
// A copy constructor is needed for serialization | |||
TestOptionalStruct(const TestOptionalStruct& other) = default; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think I just reviewed a PR that added these?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This copy constructor was added 2 years ago.
I am currently getting an error because of this
error: definition of implicit copy assignment operator for 'TestOptionalStruct' is deprecated because it has a user-declared copy constructor [-Werror,-Wdeprecated-copy]
Seems to be that using the compiler generated copy-constructors and using the = default
constructor no longer gel well together.
Seems like not installing BOOST already found an issue with our cmake. Happy for this PR to omit that change and surface it in an issue. |
Ah I was a bit too quick for you. Already fixed it here. |
Fixes #1738 and #1982.
Additionally, replaced
[=]
, which captures by copy in lambda expressions, by[&]
which captures by reference.I updated the CI to check for lower and upper bounds of versions, with the assumption that everything in between is supported. Additionally, if the
no_boost
flag is set, I updated the CI to not install Boost so that we can better capture issues with Boost being optional.Update: Also fixed a bug from #1444 where while the
$GITHUB_ENV
variable is updated for the No-Boost case, it isn't actually used anywhere.cc: @Gold856