Gnu C++ macro __cplusplus standard conform?

前端 未结 1 977
粉色の甜心
粉色の甜心 2021-02-11 16:06

The Gnu C++ compiler seems to define __cplusplus to be 1

#include  
int main() {
  std::cout << __cplusplus <&         


        
1条回答
  •  我在风中等你
    2021-02-11 16:15

    This was fixed about a month ago (for gcc 4.7.0). The bug report makes for an interesting read: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=1773

    0 讨论(0)
提交回复
热议问题