duckladydinh's blog

By duckladydinh, history, 11 months ago, In English,

Hallo everyone,

I want to ask if there is anyway to enable g++ compiler option '-std=gnu++14' within the source code. I am upsolving problems from the recent Barcelona bootcamp but for some reasons, they did not enable C++14 and my code library just gives all kinds of errors due to that. I really do not want to recode my already tested library.

Thank you.

  • Vote: I like it  
  • -6
  • Vote: I do not like it  

11 months ago, # |
  Vote: I like it 0 Vote: I do not like it

No, I don't think you can. It does not make sense that your old version of g++ can miraculously run c++14 code just from some code within your source code.