Fix gcc 9 deprecated copy warnings.#9
Fix gcc 9 deprecated copy warnings.#9Romain-Geissler-1A wants to merge 1 commit intoboostorg:developfrom
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