I have tried to print:
std::cout << __cplusplus;
And Getting 1 as output.
Also I have tried: g++ -version command. It produces the output:
g++ (GCC) 4.4.7 20120313 (Red Hat 4.4.7-17)
Copyright (C) 2010 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
How to determine the version of the C++ standard with the above output ??
Or Is there any other way ??
Somewhere I found like, Boost.Config has a plethora of macros that can be used to test for support for specific C++11 features.