boostorg / boostorg/phoenix

deprecated-copy warnings with GCC 11

Open
#109 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
33
Forks
51
PR merge metrics
No merged PRs in 30d

Description

using boost log causes warnings inside phoenix. since everything includes the logger, everything also gets this warning when compiling.

```
.conan/data/boost/1.77.0/_/_/package/fb79f387bfd721655dc9bd01764e2c1fb2c4756d/include/boost/phoenix/core/actor.hpp: In instantiation of 'static boost::log::v2s_mt_posix::expressions::aux::make_output_actor, RightT, ValueT, false>::type boost::log::v2s_mt_posix::expressions::aux::make_output_actor, RightT, ValueT, false>::make(const ActorT&, const RightT&) [with ActorT = boost::phoenix::actor; LeftExprT = boost::proto::exprns_::basic_expr >, 0>; RightT = boost::log::v2s_mt_posix::expressions::attribute_actor; ValueT = boost::log::v2s_mt_posix::trivial::severity_level; boost::log::v2s_mt_posix::expressions::aux::make_output_actor, RightT, ValueT, false>::type = boost::phoenix::actor >, 0> >, boost::log::v2s_mt_posix::trivial::severity_level, boost::log::v2s_mt_posix::fallback_to_none, boost::log::v2s_mt_posix::to_log_fun > >]':
.conan/data/boost/1.77.0/_/_/package/fb79f387bfd721655dc9bd01764e2c1fb2c4756d/include/boost/log/detail/generate_overloads.hpp:27:1: required from 'typename boost::log::v2s_mt_posix::expressions::aux::make_output_actor, boost::log::v2s_mt_posix::expressions::attribute_actor >::type boost::log::v2s_mt_posix::expressions::operator<<(const boost::phoenix::actor&, boost::log::v2s_mt_posix::expressions::attribute_actor&&) [with LeftExprT = boost::proto::exprns_::basic_expr >, 0>; T = boost::log::v2s_mt_posix::trivial::severity_level; FallbackPolicyT = boost::log::v2s_mt_posix::fallback_to_none; TagT = void; typename boost::log::v2s_mt_posix::expressions::aux::make_output_actor, boost::log::v2s_mt_posix::expressions::attribute_actor >::type = boost::phoenix::actor >, 0> >, boost::log::v2s_mt_posix::trivial::severity_level, boost::log::v2s_mt_posix::fallback_to_none, boost::log::v2s_mt_posix::to_log_fun > >; typename boost::log::v2s_mt_posix::expressions::attribute_actor::value_type = boost::log::v2s_mt_posix::trivial::severity_level]'
.conan/data/boost/1.77.0/_/_/package/fb79f387bfd721655dc9bd01764e2c1fb2c4756d/include/boost/log/utility/setup/formatter_parser.hpp:108:51: required from
'boost::log::v2s_mt_posix::basic_formatter_factory::formatter_type boost::log::v2s_mt_posix::basic_formatter_factory::create_formatter(const boost::log::v2s_mt_posix::attribute_name&, const args_map&) [with CharT = char; AttributeValueT = boost::log::v2s_mt_posix::trivial::severity_level; boost::log::v2s_mt_posix::basic_formatter_factory::formatter_type = boost::log::v2s_mt_posix::basic_formatter; boost::log::v2s_mt_posix::basic_formatter_factory::args_map = std::map, std::basic_string >]'
.conan/data/boost/1.77.0/_/_/package/fb79f387bfd721655dc9bd01764e2c1fb2c4756d/include/boost/log/utility/setup/formatter_parser.hpp:106:20: required from here
.conan/data/boost/1.77.0/_/_/package/fb79f387bfd721655dc9bd01764e2c1fb2c4756d/include/boost/phoenix/core/actor.hpp:133:12: warning: implicitly-declared 'boost::proto::exprns_::expr >, 0> >, boost::log::v2s_mt_posix::trivial::severity_level, boost::log::v2s_mt_posix::fallback_to_none, boost::log::v2s_mt_posix::to_log_fun > >, 0>::expr(const boost::proto::exprns_::expr >, 0> >, boost::log::v2s_mt_posix::trivial::severity_level, boost::log::v2s_mt_posix::fallback_to_none, boost::log::v2s_mt_posix::to_log_fun > >, 0>&)' is deprecated [-Wdeprecated-copy]
```

```
$ /opt/rh/devtoolset-11/root/bin/g++ -v
Using built-in specs.
COLLECT_GCC=/opt/rh/devtoolset-11/root/bin/g++
COLLECT_LTO_WRAPPER=/opt/rh/devtoolset-11/root/usr/libexec/gcc/x86_64-redhat-linux/11/lto-wrapper
Target: x86_64-redhat-linux
Configured with: ../configure --enable-bootstrap --enable-languages=c,c++,fortran,lto --prefix=/opt/rh/devtoolset-11/root/usr --mandir=/opt/rh/devtoolset-11/root/usr/share/man --infodir=/opt/rh/devtoolset-11/root/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-shared --enable-threads=posix --enable-checking=release --enable-multilib --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-gcc-major-version-only --with-linker-hash-style=gnu --with-default-libstdcxx-abi=gcc4-compatible --enable-plugin --enable-initfini-array --with-isl=/builddir/build/BUILD/gcc-11.2.1-20220127/obj-x86_64-redhat-linux/isl-install --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux
Thread model: posix
Supported LTO compression algorithms: zlib
gcc version 11.2.1 20220127 (Red Hat 11.2.1-9) (GCC)
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.