Skip to content

json.hpp:15372:22: error: expected unqualified-id if (not std::isfinite(x)): Started getting this bug after updating my XCode #2056

Description

@sarahaguasvivas

[macOS Catalina]

Hi all,

I started getting the following bug after I upgraded my os to OS Catalina and also the version of XCode:

nlohmann_json/single_include/nlohmann/json.hpp:15372:22: error: 
      expected unqualified-id
        if (not std::isfinite(x))
                     ^
/usr/local/include/math.h:155:5: note: expanded from macro 'isfinite'
    ( sizeof(x) == sizeof(float)  ? __inline_isfinitef((float)(x))       \
    ^

I tried: xcode-select --install and also running my cmake file with additional flags. Let me know what I can do to fix this.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    state: needs more infothe author of the issue needs to provide more details

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions