Author
anonymous
almost 5 years ago
Language
Compiler
Options
Author
anonymous
almost 5 years ago
$
prog.cc: In instantiation of 'const bool Catch::is_range<std::__detail::_Node_iterator<std::pair<const int, int>, false, false> >::value':
prog.cc:23:77: required from here
prog.cc:16:41: error: use of deleted function 'void std::__detail::begin(const auto:2&) [with auto:2 = std::__detail::_Node_iterator<std::pair<const int, int>, false, false>]'
16 | !std::is_same<decltype(begin(std::declval<T>())), not_this_one>::value &&
| ~~~~~^~~~~~~~~~~~~~~~~~~
In file included from /opt/wandbox/gcc-head/include/c++/11.0.0/bits/stl_iterator_base_types.h:71,
from /opt/wandbox/gcc-head/include/c++/11.0.0/bits/stl_construct.h:61,
from /opt/wandbox/gcc-head/include/c++/11.0.0/bits/alloc_traits.h:33,
from /opt/wandbox/gcc-head/include/c++/11.0.0/ext/alloc_traits.h:34,
from /opt/wandbox/gcc-head/include/c++/11.0.0/unordered_map:41,
from prog.cc:1:
/opt/wandbox/gcc-head/include/c++/11.0.0/bits/iterator_concepts.h:873:10: note: declared here
873 | void begin(const auto&) = delete;
| ^~~~~
prog.cc: In function 'int main()':
prog.cc:23:19: error: non-constant condition for static assertion
23 | static_assert(!Catch::is_range<std::unordered_map<int, int>::iterator>::value);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Exit Code:
1