1

My code will compile fine with -std=c++0x flag but the TA refuses use it (He thinks it will cause issues with other student's code). Is there any way to tell the compiler to use this flag in code instead?

John
  • 775
  • 3
  • 11
  • 25

1 Answers1

2

You can't, sorry.

Generally speaking, you cannot change compiler options from a source file, especially for options with wide-reaching implications like the language standard. There are some exceptions (for instance, you can often selectively disable warnings using a #pragma), but this isn't one of them.