c++ - Is there a way to figure out the version of a compiler in code? -


is possible version of compiler in code? example using compiler directives?
trying find version of compiler , lets if version of gcc or visual c++ c++11 compliant compile bit of code , if not compile thats snippet instead

in gcc , clang, use __version__ macro.


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

java - More than one row with the given identifier was found: 1, for class: com.model.Diagnosis -