-
Notifications
You must be signed in to change notification settings - Fork 39
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
Fix gcc 9 deprecated copy warnings. #9
base: develop
Are you sure you want to change the base?
Fix gcc 9 deprecated copy warnings. #9
Conversation
It seems that |
0ff5208
to
223166e
Compare
@orivej Indeed I made this PR too quickly... I have updated it. I grepped for all "operator=" calls, and explicitly deleted it if it was a private non implemented one. |
223166e
to
066be83
Compare
Ping |
I'm having what seem to be related warnings. ( Boost 1.78, gcc 11.2.1 compiling with -Wextra ). I tried applying this pull request but still got warnings with the following code: #include <boost/xpressive/xpressive_static.hpp>
int
main(int /*argc*/, char * /*argv*/ [])
{
return 0;
}
The proto expr::operator=() is actually defined and required. I tried adding a copy constructor, as a test, but that led to another issue where the class is being list initialized and so that wasn't possible with a copy constructor. I think the only workaround is to disable that warning for now. |
Hi,
When building with gcc 9, we get some of these new deprecated copy warnings. Explicitly defining the copy constructors silences them.
Cheers,
Romain