how to define -std=c++11 as default in g++

Yes, you typically set this in a Makefile: One layer above you can also detect a suitable compiler via autoconf, cmake or whichever other meta-buildtool you might deploy. You of course play games as define g++11 as g++ -std=c++11 but such set-ups are not portable. g++-6.* will default to c++14 so at some this switch will be implicit. But it might take … Read more