Why does stack not compile in g++? [duplicate]

The members of a standard container have to be copy assignable or movable (C++11). If the type is const it fails the requirements.

Leave a Comment