Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

about 6 years ago

Language

C++

Compiler

gcc HEAD 10.0.0 20190513 (experimental)

Options
Warnings
Boost 1.70.0
C++17
no pedantic

Author

anonymous

about 6 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.70.0/gcc-head/include -std=c++17
In file included from /opt/wandbox/boost-1.70.0/gcc-head/include/boost/multiprecision/traits/is_variable_precision.hpp:10,
                 from /opt/wandbox/boost-1.70.0/gcc-head/include/boost/multiprecision/detail/precision.hpp:9,
                 from /opt/wandbox/boost-1.70.0/gcc-head/include/boost/multiprecision/number.hpp:23,
                 from /opt/wandbox/boost-1.70.0/gcc-head/include/boost/multiprecision/cpp_int.hpp:12,
                 from prog.cc:5:
/opt/wandbox/boost-1.70.0/gcc-head/include/boost/multiprecision/number.hpp: In instantiation of 'boost::multiprecision::number<Backend, ExpressionTemplates> boost::multiprecision::number<Backend, ExpressionTemplates>::operator++(int) [with Backend = boost::multiprecision::backends::cpp_int_backend<>; boost::multiprecision::expression_template_option ExpressionTemplates = boost::multiprecision::et_on]':
prog.cc:18:38:   required from here
/opt/wandbox/boost-1.70.0/gcc-head/include/boost/multiprecision/detail/number_base.hpp:160:39: warning: moving a local object in a return statement prevents copy elision [-Wpessimizing-move]
  160 | #  define BOOST_MP_MOVE(x) std::move(x)
      |                                       ^
/opt/wandbox/boost-1.70.0/gcc-head/include/boost/multiprecision/number.hpp:624:14: note: in expansion of macro 'BOOST_MP_MOVE'
  624 |       return BOOST_MP_MOVE(temp);
      |              ^~~~~~~~~~~~~
/opt/wandbox/boost-1.70.0/gcc-head/include/boost/multiprecision/detail/number_base.hpp:160:39: note: remove 'std::move' call
  160 | #  define BOOST_MP_MOVE(x) std::move(x)
      |                                       ^
/opt/wandbox/boost-1.70.0/gcc-head/include/boost/multiprecision/number.hpp:624:14: note: in expansion of macro 'BOOST_MP_MOVE'
  624 |       return BOOST_MP_MOVE(temp);
      |              ^~~~~~~~~~~~~
terminate called after throwing an instance of 'boost::wrapexcept<std::runtime_error>'
056173750792063161465854243256731569966935353669918693330657253609717321856335338
  what():  Unexpected content found while parsing character string.
Signal:
Aborted