Why does GCC allow use of round() in C++ even with the ansi and pedantic flags?

前端 未结 3 532
温柔的废话
温柔的废话 2021-01-18 11:28

Is there a good reason why this program compiles under GCC even with the -ansi and -pedantic flags?

#include 

int mai         


        
3条回答
  •  既然无缘
    2021-01-18 12:10

    I might be off base here but doesn't gcc's -ansi flag apply to the code constructs (ie, disable GCC language extensions) rather than switching all libraries into strict ANSI compliant mode as well?

提交回复
热议问题