I am learning c++ and I am compiling lots of small programs without makefiles (using m-x compile) via g++.
When I want to compile according to c++14 I have to constantly add -std=c++14.
Is there a way to make g++ compile c++14 by default and avoid the extra typing?
Here is my current version:
g++ (Ubuntu 5.4.1-2ubuntu1~16.04) 5.4.1 20160904.