std::expf and std::logf not recognized by gcc 7.2.0

后端 未结 3 1821
感动是毒
感动是毒 2020-12-20 20:44

It seems that gcc (tried 7.2.0 and 5.4.0) does not have std::expf and std::logf - see coliru sample. Since cppreference says they were added in C++11 is there some gcc speci

3条回答
  •  鱼传尺愫
    2020-12-20 21:20

    GCC's declares the functions expf and logf and their C Library kin in the global namespace, not std::. In std:: it declares overloads of exp and log to the same effect.

提交回复
热议问题