I have an app that needs to run and compile with 1.1.7 and 1.2 and beyond. I would like to use some features of 1.2+ when I am running with it.
Is there any way to detect what version of the compiler is being used when the code is compiled?
Basically, I'm looking for C/C++ type compiler directives like
// do some 1.2 stuff
// do 1.1.7 instead
There isn't such a thing, but are there any other alternatives?
Thanks for the help.