Depending on the age of your compiler, you might have to specify c++0x.
This. Saying "using MinGW" is like saying "using car". The version of MinGW dictates what it supports, just like a version of car affects its features (Ford T-Model vs Bugatti Veyron).
MinGW is GCC and GCC supports multiple standards, but its default is conservative.