http://en.cppreference.com/w/cpp/compiler_support
Function testing macros: __GNUC__ and __GNUC_MINOR__ Example: #if __GNUC__ * 100 + __GNUC_MINOR__ >= 407 // compile iff we are on g++ 4.7 or later ------------------ Best regards, lh_mouse 2015-05-28 ------------------------------------------------------------- 发件人:"Hotmail \(ArbolOne\)" <arbol...@hotmail.ca> 发送日期:2015-05-28 23:24 收件人:gcc-help Mailing List,MinGW-64 Mailinglist 抄送: 主题:[Mingw-w64-public] GCCG with C++11 If I am not mistaken _MSC_VER >= 1600 is the version that started implementing C++11. So, I test for that version of the compiler in my code, i.e. #ifdef _MSC_VER >= 1600 .... #endif I would like to do the same for __GNUG__, but what version of g++ started implementing C++11? Thanks ------------------------------------------------------------------------------ _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public ------------------------------------------------------------------------------ _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public