The members of a standard container have to be copy assignable or movable (C++11). If the type is const
it fails the requirements.
More Related Contents:
- C++ template function compiles in header but not implementation
- std::enable_if to conditionally compile a member function
- How to detect whether there is a specific member variable in class?
- C++11 make_pair with specified template parameters doesn’t compile
- Why C++ containers don’t allow incomplete types?
- Can standard container templates be instantiated with incomplete types?
- static_assert fails compilation even though template function is called nowhere
- Determine if a type is an STL container at compile time
- C++ templates, undefined reference
- “not declared in this scope” error with templates and inheritance [duplicate]
- Template class with template container
- Standard Library Containers with additional optional template parameters?
- C++ std::map holding ANY type of value
- Why is the STL so heavily based on templates instead of inheritance?
- std::enable_if : parameter vs template parameter
- Obtain container type from (its) iterator type in C++ (STL)
- C++ std::set update is tedious: I can’t change an element in place
- Does C++ support compile-time counters?
- C++ invoke explicit template constructor
- maximum value of int
- GCC STL bound checking
- comparing iterators from different containers
- Difference between instantiation and specialization in c++ templates
- Populate An Array Using Constexpr at Compile-time
- Why is it not possible to overload class templates?
- Strong typedefs [duplicate]
- C++ Templates Angle Brackets Pitfall – What is the C++11 fix?
- How to check that the passed Iterator is a random access iterator?
- Inspecting STL containers in Visual Studio debugging
- Can I use the result of a C++17 captureless lambda constexpr conversion operator as a function pointer template non-type argument?