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

Compile error on Embarcadero XE 10.2 (std::isnan) #1438

Closed
simpleb13 opened this issue Nov 13, 2018 · 2 comments
Closed

Compile error on Embarcadero XE 10.2 (std::isnan) #1438

simpleb13 opened this issue Nov 13, 2018 · 2 comments

Comments

@simpleb13
Copy link

Description

Embarcadero claims C++11 compatibility in their BCC32C and BCC64 compilers, but setting up a test project throws:

[bcc64 Error] catch.hpp(11586): no member named 'isnan' in namespace 'std'

Steps to reproduce

Fails on build with CLang compiler, all default settings for both 32bit & 64bit apps.

Extra information

It appears replacing isnan with _isnan allows it to compile although I'm not knowledgeable enough yet to understand why.
Found the fix here.

  • Catch version: v2.4.2
  • Operating System: Windows 10 64bit Pro
  • Compiler+version: CLang 3.3
@horenmar
Copy link
Member

The simple answer is that they did something terrible to their "C++11 compliant" library.

We can provide a polyfill over it, but it will take me at least until the end of the week before I have the time to do so.

@horenmar
Copy link
Member

This should be fixed now

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

No branches or pull requests

2 participants