I have been using Ubuntu for so long, and a few days before I decided to switch to Linux Mint. On ubuntu, I never had any problems on compiling C++ source code written for the c++14
standard. But on Mint, the default standard is c++98
. I tried to make an alias as follows:
alias g++="g++ -std=c++14
and it worked for small programs that I manually compile. However, this is not a solution for automatic software building with Makefiles, so I want to tell g++ to use c++14
as the default ISO. Thanks for your help
I want this for me, more concretly I want to do something like:
std::vector<int> numbers = {1, 2, 3, 4, 5};