Wandbox
SettingsLog
SettingsLog
Language
GitHubLogin
Ran/Viewed Log

Author

anonymous

over 6 years ago

Language

C++

Compiler

gcc HEAD 9.0.1 20190221 (experimental)

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

Author

anonymous

over 6 years ago

$ g++ prog.cc -Wall -Wextra -I/opt/wandbox/boost-1.69.0/gcc-head/include -std=gnu++2a
In file included from /opt/wandbox/gcc-head/include/c++/9.0.1/set:60,
                 from prog.cc:2:
/opt/wandbox/gcc-head/include/c++/9.0.1/bits/stl_tree.h: In instantiation of 'class std::_Rb_tree<int, int, std::_Identity<int>, int, std::allocator<int> >':
/opt/wandbox/gcc-head/include/c++/9.0.1/bits/stl_set.h:133:17:   required from 'class std::set<int, int>'
prog.cc:16:26:   required from here
/opt/wandbox/gcc-head/include/c++/9.0.1/bits/stl_tree.h:444:21: error: static assertion failed: comparison object must be invocable with two arguments of key type
  444 |       static_assert(__is_invocable<_Compare&, const _Key&, const _Key&>{},
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/opt/wandbox/gcc-head/include/c++/9.0.1/bits/stl_tree.h:449:21: error: static assertion failed: comparison object must be invocable as const
  449 |       static_assert(is_invocable_v<const _Compare&, const _Key&, const _Key&>,
      |                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Exit Code:
1