Language
C++
Compiler
gcc HEAD 9.0.0 20180909 (experimental)
Options
Warnings
Boost 1.68.0
C++2a
-pedantic
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/gcc-head/include -std=c++2a -pedantic
Exit Code:
1
Author
anonymous
over 6 years ago
C++
gcc HEAD 9.0.0 20180909 (experimental)
Author
anonymous
over 6 years ago
$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.68.0/gcc-head/include -std=c++2a -pedantic
prog.cc: In function 'int main()':
prog.cc:15:19: error: static assertion failed
15 | static_assert(!std::is_assignable_v<reverse_iterator, const_reverse_iterator>); // fails
| ^~~~