Skip to content
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

clang-15 warning: definition of implicit copy constructor for 'actor<boost::log::expressions::aux::unary_function_terminal<boost::log::expressions::has_attribute<void>>>' is deprecated because it has a user-declared copy assignment operator #114

Open
k15tfu opened this issue Dec 21, 2022 · 4 comments

Comments

@k15tfu
Copy link

k15tfu commented Dec 21, 2022

Hi!

In file boost/phoenix/core/actor.hpp:

boost/phoenix/core/actor.hpp:228:39: error: definition of implicit copy constructor for 'actor<boost::log::expressions::aux::unary_function_terminal<boost::log::expressions::has_attribute<void>>>' is deprecated because it has a user-declared copy assignment operator [-Werror,-Wdeprecated-copy]
        BOOST_DELETED_FUNCTION(actor& operator=(actor const&))
                                      ^
[...]
1 error generated.
@djowel
Copy link
Collaborator

djowel commented Dec 22, 2022

Instead of copy-pasting the warning message, how about analyzing the actual problem and telling why this is a phoenix issue?

@nickwilliams-zaxiom
Copy link

I'm also seeing this in clang-14.

@Kojoley
Copy link
Contributor

Kojoley commented Mar 7, 2023

I'm confident that it was fixed in 1.81 by #108. If you still experience the warning - please post Boost version, compiler version, compiler command line and a reproducer.

@nickwilliams-zaxiom
Copy link

nickwilliams-zaxiom commented Mar 7, 2023

Thanks. I was able to fix our warning by putting those pragmas around our import of qi.hpp.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants