Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error C3861: 'isnan': identifier not found #63

Open
windcalm opened this issue Jul 23, 2019 · 1 comment
Open

error C3861: 'isnan': identifier not found #63

windcalm opened this issue Jul 23, 2019 · 1 comment

Comments

@windcalm
Copy link

inline Log4zStream & Log4zStream::writeDouble(double t, bool isSimple)
{

#if __cplusplus >= 201103L
using std::isnan;
using std::isinf;
#endif
if (isnan(t))
{
writeString("nan", 3);
return *this;
}
else if (isinf(t))
{
writeString("inf", 3);
return *this;
}

你好,上述这段代码在vs2008下编译不通过,我觉得是不是应该把#endif放在最后。

@hellokandy
Copy link

看来有人跟我遇到同样的问题了!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants