Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

C++

Compiler

gcc HEAD 9.0.0 20180919 (experimental)

Options
Warnings
Optimization
Boost 1.68.0
C++2a(GNU)
no pedantic

Author

anonymous

over 6 years ago

$ g++ prog.cc -Wall -Wextra -O2 -march=native -I/opt/wandbox/boost-1.68.0/gcc-head/include -std=gnu++2a
In file included from /opt/wandbox/boost-1.68.0/gcc-head/include/boost/thread/pthread/mutex.hpp:14,
                 from /opt/wandbox/boost-1.68.0/gcc-head/include/boost/thread/mutex.hpp:16,
                 from /opt/wandbox/boost-1.68.0/gcc-head/include/boost/thread/synchronized_value.hpp:14,
                 from prog.cc:6:
/opt/wandbox/boost-1.68.0/gcc-head/include/boost/thread/exceptions.hpp: In instantiation of 'boost::exception_detail::error_info_injector<T>::error_info_injector(const T&) [with T = boost::thread_resource_error]':
/opt/wandbox/boost-1.68.0/gcc-head/include/boost/exception/exception.hpp:406:16:   required from 'typename boost::exception_detail::enable_error_info_return_type<T>::type boost::enable_error_info(const T&) [with T = boost::thread_resource_error; typename boost::exception_detail::enable_error_info_return_type<T>::type = boost::exception_detail::error_info_injector<boost::thread_resource_error>]'
/opt/wandbox/boost-1.68.0/gcc-head/include/boost/throw_exception.hpp:69:53:   required from 'void boost::throw_exception(const E&) [with E = boost::thread_resource_error]'
/opt/wandbox/boost-1.68.0/gcc-head/include/boost/thread/pthread/mutex.hpp:100:124:   required from here
/opt/wandbox/boost-1.68.0/gcc-head/include/boost/thread/exceptions.hpp:121:32: warning: implicitly-declared 'boost::thread_exception::thread_exception(const boost::thread_exception&)' is deprecated [-Wdeprecated-copy]
121 |     class BOOST_SYMBOL_VISIBLE thread_resource_error:
    |                                ^~~~~~~~~~~~~~~~~~~~~
/opt/wandbox/boost-1.68.0/gcc-head/include/boost/thread/exceptions.hpp:59:9: note: because 'boost::thread_exception' has user-provided 'virtual boost::thread_exception::~thread_exception()'
59 |         ~thread_exception() throw()
   |         ^
/opt/wandbox/boost-1.68.0/gcc-head/include/boost/thread/exceptions.hpp:36:32: warning: implicitly-declared 'boost::system::system_error::system_error(const boost::system::system_error&)' is deprecated [-Wdeprecated-copy]
36 |     class BOOST_SYMBOL_VISIBLE thread_exception:
   |                                ^~~~~~~~~~~~~~~~
In file included from /opt/wandbox/boost-1.68.0/gcc-head/include/boost/thread/exceptions.hpp:22,
                 from /opt/wandbox/boost-1.68.0/gcc-head/include/boost/thread/pthread/mutex.hpp:14,
                 from /opt/wandbox/boost-1.68.0/gcc-head/include/boost/thread/mutex.hpp:16,
                 from /opt/wandbox/boost-1.68.0/gcc-head/include/boost/thread/synchronized_value.hpp:14,
                 from prog.cc:6:
/opt/wandbox/boost-1.68.0/gcc-head/include/boost/system/system_error.hpp:47:15: note: because 'boost::system::system_error' has user-provided 'virtual boost::system::system_error::~system_error()'
47 |       virtual ~system_error() BOOST_NOEXCEPT_OR_NOTHROW {}
   |               ^
In file included from /opt/wandbox/boost-1.68.0/gcc-head/include/boost/thread/pthread/mutex.hpp:14,
                 from /opt/wandbox/boost-1.68.0/gcc-head/include/boost/thread/mutex.hpp:16,
                 from /opt/wandbox/boost-1.68.0/gcc-head/include/boost/thread/synchronized_value.hpp:14,
                 from prog.cc:6:
/opt/wandbox/boost-1.68.0/gcc-head/include/boost/thread/exceptions.hpp:121:32: note: synthesized method 'boost::thread_exception::thread_exception(const boost::thread_exception&)' first required here
121 |     class BOOST_SYMBOL_VISIBLE thread_resource_error:
    |                                ^~~~~~~~~~~~~~~~~~~~~
In file included from /opt/wandbox/boost-1.68.0/gcc-head/include/boost/throw_exception.hpp:42,
                 from /opt/wandbox/boost-1.68.0/gcc-head/include/boost/thread/pthread/mutex.hpp:12,
                 from /opt/wandbox/boost-1.68.0/gcc-head/include/boost/thread/mutex.hpp:16,
                 from /opt/wandbox/boost-1.68.0/gcc-head/include/boost/thread/synchronized_value.hpp:14,
                 from prog.cc:6:
/opt/wandbox/boost-1.68.0/gcc-head/include/boost/exception/exception.hpp:354:20: note: synthesized method 'boost::thread_resource_error::thread_resource_error(const boost::thread_resource_error&)' first required here
354 |                 T(x)
    |                    ^
In file included from /opt/wandbox/boost-1.68.0/gcc-head/include/boost/thread/pthread/mutex.hpp:14,
                 from /opt/wandbox/boost-1.68.0/gcc-head/include/boost/thread/mutex.hpp:16,
                 from /opt/wandbox/boost-1.68.0/gcc-head/include/boost/thread/synchronized_value.hpp:14,
                 from prog.cc:6:
/opt/wandbox/boost-1.68.0/gcc-head/include/boost/thread/exceptions.hpp: In instantiation of 'boost::exception_detail::error_info_injector<T>::error_info_injector(const T&) [with T = boost::lock_error]':
/opt/wandbox/boost-1.68.0/gcc-head/include/boost/exception/exception.hpp:406:16:   required from 'typename boost::exception_detail::enable_error_info_return_type<T>::type boost::enable_error_info(const T&) [with T = boost::lock_error; typename boost::exception_detail::enable_error_info_return_type<T>::type = boost::exception_detail::error_info_injector<boost::lock_error>]'
/opt/wandbox/boost-1.68.0/gcc-head/include/boost/throw_exception.hpp:69:53:   required from 'void boost::throw_exception(const E&) [with E = boost::lock_error]'
/opt/wandbox/boost-1.68.0/gcc-head/include/boost/thread/pthread/mutex.hpp:115:104:   required from here
/opt/wandbox/boost-1.68.0/gcc-head/include/boost/thread/exceptions.hpp:94:32: warning: implicitly-declared 'boost::thread_exception::thread_exception(const boost::thread_exception&)' is deprecated [-Wdeprecated-copy]
94 |     class BOOST_SYMBOL_VISIBLE lock_error:
   |                                ^~~~~~~~~~
/opt/wandbox/boost-1.68.0/gcc-head/include/boost/thread/exceptions.hpp:59:9: note: because 'boost::thread_exception' has user-provided 'virtual boost::thread_exception::~thread_exception()'
59 |         ~thread_exception() throw()
   |         ^
In file included from /opt/wandbox/boost-1.68.0/gcc-head/include/boost/throw_exception.hpp:42,
                 from /opt/wandbox/boost-1.68.0/gcc-head/include/boost/thread/pthread/mutex.hpp:12,
                 from /opt/wandbox/boost-1.68.0/gcc-head/include/boost/thread/mutex.hpp:16,
                 from /opt/wandbox/boost-1.68.0/gcc-head/include/boost/thread/synchronized_value.hpp:14,
                 from prog.cc:6:
/opt/wandbox/boost-1.68.0/gcc-head/include/boost/exception/exception.hpp:354:20: note: synthesized method 'boost::lock_error::lock_error(const boost::lock_error&)' first required here
354 |                 T(x)
    |                    ^
This boost::synchronized_value's work has needed 3253 microseconds
This std::atomic's work has needed 155 microseconds
This std::mutex's work has needed 3049 microseconds
Exit Code:
0