This is a guide about how can you add C++ 11 support to DevCpp mingw.
Steps:
1. Open DevCpp.
2. Go to Tools -> Compiler Options -> Add the following commands when calling the compiler:
You have to write this line:
-std=c++11
if this above doesn't work, try this one:
-std=C++0x
These are the few things than will be able to use after this:
- null pointer initialization with nullptr;
Example:
int c*;
c=nullptr;
- scoped enums;
Example:
enum name {write, black, green};
name ename;
ename=name::black;
-much more