Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 7 years ago

Language

Compiler

Options

Author

anonymous

over 7 years ago

$
prog.cc: In function 'int main()':
prog.cc:7:24: error: reference to '_1' is ambiguous
   std::bind([](int){}, _1);
                        ^~
In file included from prog.cc:2:0:
/opt/wandbox/gcc-head/include/c++/8.0.0/functional:272:34: note: candidates are: 'const std::_Placeholder<1> std::placeholders::_1'
     extern const _Placeholder<1> _1;
                                  ^~
In file included from /opt/wandbox/boost-1.65.1/gcc-head/include/boost/bind/bind.hpp:2319:0,
                 from /opt/wandbox/boost-1.65.1/gcc-head/include/boost/bind.hpp:22,
                 from prog.cc:1:
/opt/wandbox/boost-1.65.1/gcc-head/include/boost/bind/placeholders.hpp:46:38: note:                 'constexpr const boost::arg<1> boost::placeholders::_1'
 BOOST_STATIC_CONSTEXPR boost::arg<1> _1;
                                      ^~
Exit Code:
1