vendredi 9 août 2019

How to force g++ to compile c++11 standard only?

std::vector<bool>::emplace_back is available only since C++14. However, with my g++ 5.4.0 it compiles ok even if I specify -std=c++11.

When I compile the same code with g++ 4.8.4, it fails. Is there a way how to convince g++ to strictly check the selected standard?

Note: I already use -pedantic -Wextra -Wall.

Aucun commentaire:

Enregistrer un commentaire