boostorg / proto

Boost.org proto module
http://boost.org/libs/proto
21 stars 38 forks source link

Fix -Wdeprecated-copy (Clang, but partly GCC) #24

Closed Kojoley closed 4 years ago

Kojoley commented 4 years ago

Initially I was planning to suppress the warning inside BOOST_PROTO_EXTENDS_COPY_ASSIGN_ macro too since there is no way to fix it for aggregate types, but it is probably an overkill, hopefully in Phoenix there is only one place where it is needed and in Spirit copy constructors are explicitly defined.

Fixes #22

k15tfu commented 3 years ago

@Kojoley @ericniebler Hi! This causes another warning on AppleClang 12:

boost/proto/expr.hpp:140:44: error: unknown warning group '-Wdeprecated-copy'

We can check if this warning exists first: __has_warning("-Wdeprecated-copy")