Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 3 years ago

Language

C++

Compiler

gcc 12.1.0

Options
Warnings
Boost 1.79.0
C++2b(GNU)
no pedantic

Author

anonymous

over 3 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.79.0-gcc-12.1.0/include -std=gnu++2b
In file included from /opt/wandbox/boost-1.79.0-gcc-12.1.0/include/boost/functional/hash.hpp:6,
                 from /opt/wandbox/boost-1.79.0-gcc-12.1.0/include/boost/thread/detail/thread.hpp:41,
                 from /opt/wandbox/boost-1.79.0-gcc-12.1.0/include/boost/thread/thread_only.hpp:22,
                 from /opt/wandbox/boost-1.79.0-gcc-12.1.0/include/boost/thread/thread.hpp:12,
                 from prog.cc:1:
/opt/wandbox/boost-1.79.0-gcc-12.1.0/include/boost/container_hash/hash.hpp:132:33: warning: 'template<class _Arg, class _Result> struct std::unary_function' is deprecated [-Wdeprecated-declarations]
  132 |         struct hash_base : std::unary_function<T, std::size_t> {};
      |                                 ^~~~~~~~~~~~~~
In file included from /opt/wandbox/gcc-12.1.0/include/c++/12.1.0/string:48,
                 from /opt/wandbox/boost-1.79.0-gcc-12.1.0/include/boost/thread/exceptions.hpp:20,
                 from /opt/wandbox/boost-1.79.0-gcc-12.1.0/include/boost/thread/pthread/thread_data.hpp:10,
                 from /opt/wandbox/boost-1.79.0-gcc-12.1.0/include/boost/thread/thread_only.hpp:17:
/opt/wandbox/gcc-12.1.0/include/c++/12.1.0/bits/stl_function.h:117:12: note: declared here
  117 |     struct unary_function
      |            ^~~~~~~~~~~~~~
std::thread starting
std::thread foo()
std::thread done
std::thread ~foo()
std::thread joining
std::thread joined

boost::thread starting
boost::thread foo()
boost::thread done
boost::thread joining
boost::thread ~foo()
boost::thread joined

Exit Code:
0