I am trying to run a c++ script in root where I use “std::to_string(Value)” to convert numerical value to a string.
To my knowledge, this function works if we have C++11 support and to enable it we have to use “g++ -std=c++11 myscript.cc”.
My question is, how do I enable this “-std=c++11” option of g++ in root. Or in general, how do we enable any of the gcc/g++ command options in root?
I am working on Ubuntu 14.04, ROOT v5.34 and I have g++ v4.8.2.