Language
C++
Compiler
gcc HEAD 8.0.0 20171002 (experimental)
Options
Warnings
Boost 1.65.1
C++1z(GNU)
no pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.65.1/gcc-head/include -std=gnu++1z
Exit Code:
1
Author
anonymous
over 7 years ago
C++
gcc HEAD 8.0.0 20171002 (experimental)
Author
anonymous
over 7 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.65.1/gcc-head/include -std=gnu++1z
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;
^~