Author
anonymous
over 7 years ago
Language
Compiler
Options
Author
anonymous
over 7 years ago
$
In file included from prog.cc:1:
/opt/wandbox/clang-6.0.0/include/c++/v1/list:820:5: error: static_assert failed due to requirement 'is_same<value_type, typename allocator_type::value_type>::value' "Invalid allocator::value_type"
static_assert((is_same<value_type, typename allocator_type::value_type>::value),
^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
prog.cc:5:40: note: in instantiation of template class 'std::__1::list<int, std::__1::allocator<void> >' requested here
std::list<int, std::allocator<void>> lis;
^
1 error generated.
Exit Code:
1