I tried to initialize a list of const string but I get an error. The simply code is the following
#include <string>
#include <list>
int main()
{
std::list<const std::string> l;
return 0;
}
When I compile I get the following error:
Can someone explain me why? Thanks