Package: libboost-all-dev Version: 1.71.0.3 Severity: normal X-Debbugs-Cc: bog...@kde.org
Dear Maintainer, I tried to use boost with C++ 20 (gcc 10), and I got the following errors. I also tried boost 1.73 (from conan.io) and everything compiles. Maybe it's time for a new boost in debian 1.74 :) ? [errors] /usr/include/boost/log/attributes/named_scope.hpp:128:29: error: ‘reference’ in ‘boost::log::v2_mt_posix::attributes::named_scope_list::allocator_type’ {aka ‘class std::allocator<boost::log::v2_mt_posix::attributes::named_scope_entry>’} does not name a type 128 | typedef allocator_type::reference reference; | ^~~~~~~~~ /usr/include/boost/log/attributes/named_scope.hpp:129:29: error: ‘const_reference’ in ‘boost::log::v2_mt_posix::attributes::named_scope_list::allocator_type’ {aka ‘class std::allocator<boost::log::v2_mt_posix::attributes::named_scope_entry>’} does not name a type 129 | typedef allocator_type::const_reference const_reference; | ^~~~~~~~~~~~~~~ /usr/include/boost/log/attributes/named_scope.hpp:130:29: error: ‘pointer’ in ‘boost::log::v2_mt_posix::attributes::named_scope_list::allocator_type’ {aka ‘class std::allocator<boost::log::v2_mt_posix::attributes::named_scope_entry>’} does not name a type 130 | typedef allocator_type::pointer pointer; | ^~~~~~~ /usr/include/boost/log/attributes/named_scope.hpp:131:29: error: ‘const_pointer’ in ‘boost::log::v2_mt_posix::attributes::named_scope_list::allocator_type’ {aka ‘class std::allocator<boost::log::v2_mt_posix::attributes::named_scope_entry>’} does not name a type 131 | typedef allocator_type::const_pointer const_pointer; | ^~~~~~~~~~~~~ /usr/include/boost/log/attributes/named_scope.hpp:154:31: error: incomplete type ‘boost::log::v2_mt_posix::attributes::named_scope_list’ used in nested name specifier 154 | named_scope_list::const_reference, | ^~~~~~~~~~~~~~~ /usr/include/boost/log/attributes/named_scope.hpp:155:31: error: incomplete type ‘boost::log::v2_mt_posix::attributes::named_scope_list’ used in nested name specifier 155 | named_scope_list::reference | ^~~~~~~~~ /usr/include/boost/log/attributes/named_scope.hpp:156:9: error: template argument 2 is invalid 156 | >::type reference; | ^ /usr/include/boost/log/attributes/named_scope.hpp:156:9: error: template argument 3 is invalid /usr/include/boost/log/attributes/named_scope.hpp:156:10: error: ‘<declaration error>’ is not a template [-fpermissive] 156 | >::type reference; | ^~ /usr/include/boost/log/attributes/named_scope.hpp:159:31: error: incomplete type ‘boost::log::v2_mt_posix::attributes::named_scope_list’ used in nested name specifier 159 | named_scope_list::const_pointer, | ^~~~~~~~~~~~~ /usr/include/boost/log/attributes/named_scope.hpp:160:31: error: incomplete type ‘boost::log::v2_mt_posix::attributes::named_scope_list’ used in nested name specifier 160 | named_scope_list::pointer | ^~~~~~~ /usr/include/boost/log/attributes/named_scope.hpp:161:9: error: template argument 2 is invalid 161 | >::type pointer; | ^ /usr/include/boost/log/attributes/named_scope.hpp:161:9: error: template argument 3 is invalid /usr/include/boost/log/attributes/named_scope.hpp:161:10: error: ‘<declaration error>’ is not a template [-fpermissive] 161 | >::type pointer; | ^~ /usr/include/boost/log/attributes/named_scope.hpp:318:5: error: ‘const_reference’ does not name a type; did you mean ‘is_reference’? 318 | const_reference back() const { return *rbegin(); } | ^~~~~~~~~~~~~~~ | is_reference /usr/include/boost/log/attributes/named_scope.hpp:322:5: error: ‘const_reference’ does not name a type; did you mean ‘is_reference’? 322 | const_reference front() const { return *begin(); } | ^~~~~~~~~~~~~~~ | is_reference /usr/include/boost/log/attributes/named_scope.hpp: In member function ‘boost::log::v2_mt_posix::attributes::named_scope_list::iter<fConstV>::pointer boost::log::v2_mt_posix::attributes::named_scope_list::iter<fConstV>::operator- >() const’: /usr/include/boost/log/attributes/named_scope.hpp:209:46: error: invalid ‘static_cast’ from type ‘boost::log::v2_mt_posix::attributes::aux::named_scope_list_node* const’ to type ‘boost::log::v2_mt_posix::attributes::named_scope_list::iter<fConstV>::pointer’ {aka ‘int’} 209 | pointer operator-> () const { return static_cast< pointer >(m_pNode); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/boost/log/attributes/named_scope.hpp: In member function ‘boost::log::v2_mt_posix::attributes::named_scope_list::iter<fConstV>::reference boost::log::v2_mt_posix::attributes::named_scope_list::iter<fConstV>::operator*() const’: /usr/include/boost/log/attributes/named_scope.hpp:210:48: error: invalid ‘static_cast’ from type ‘boost::log::v2_mt_posix::attributes::aux::named_scope_list_node* const’ to type ‘boost::log::v2_mt_posix::attributes::named_scope_list::iter<fConstV>::pointer’ {aka ‘int’} 210 | reference operator* () const { return *static_cast< pointer >(m_pNode); } | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /usr/include/boost/log/attributes/named_scope.hpp: In function ‘std::basic_ostream<_CharT, _Traits>& boost::log::v2_mt_posix::attributes::operator<<(std::basic_ostream<_CharT, _Traits>&, const boost::log::v2_mt_posix::attributes::named_scope_list&)’: /usr/include/boost/log/attributes/named_scope.hpp:334:23: error: result of ‘operator->()’ yields non-pointer result 334 | strm << it->scope_name.c_str(); | ^~ /usr/include/boost/log/attributes/named_scope.hpp:336:35: error: result of ‘operator->()’ yields non-pointer result 336 | strm << "->" << it->scope_name.c_str(); | ^~ [/errors] -- System Information: Debian Release: bullseye/sid APT prefers testing-debug APT policy: (500, 'testing-debug'), (500, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 5.7.0-2-amd64 (SMP w/4 CPU threads) Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE Locale: LANG=ro_RO.UTF-8, LC_CTYPE=ro_RO.UTF-8 (charmap=UTF-8), LANGUAGE=en_US:ro Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages libboost-all-dev depends on: ii libboost-atomic-dev 1.71.0.3 ii libboost-chrono-dev 1.71.0.3 ii libboost-container-dev 1.71.0.3 ii libboost-context-dev 1.71.0.3 ii libboost-coroutine-dev 1.71.0.3 ii libboost-date-time-dev 1.71.0.3 ii libboost-dev 1.71.0.3 ii libboost-exception-dev 1.71.0.3 ii libboost-fiber-dev 1.71.0.3 ii libboost-filesystem-dev 1.71.0.3 ii libboost-graph-dev 1.71.0.3 ii libboost-graph-parallel-dev 1.71.0.3 ii libboost-iostreams-dev 1.71.0.3 ii libboost-locale-dev 1.71.0.3 ii libboost-log-dev 1.71.0.3 ii libboost-math-dev 1.71.0.3 ii libboost-mpi-dev 1.71.0.3 ii libboost-mpi-python-dev 1.71.0.3 ii libboost-numpy-dev 1.71.0.3 ii libboost-program-options-dev 1.71.0.3 ii libboost-python-dev 1.71.0.3 ii libboost-random-dev 1.71.0.3 ii libboost-regex-dev 1.71.0.3 ii libboost-serialization-dev 1.71.0.3 ii libboost-stacktrace-dev 1.71.0.3 ii libboost-system-dev 1.71.0.3 ii libboost-test-dev 1.71.0.3 ii libboost-thread-dev 1.71.0.3 ii libboost-timer-dev 1.71.0.3 ii libboost-tools-dev 1.71.0.3 ii libboost-type-erasure-dev 1.71.0.3 ii libboost-wave-dev 1.71.0.3 libboost-all-dev recommends no packages. libboost-all-dev suggests no packages. -- no debconf information