Skip to content

Library does not compile with G++ under OS X #39

@nicola-gigante

Description

@nicola-gigante

With G++ version 4.8 or 4.9 on OS X, installed from Homebrew, the library does not compiler:

optional.hpp: In function 'void std::experimental::fail(const char*, const char*, unsigned int)':
optional.hpp:211:29: error: '_assert' was not declared in this scope
     _assert(expr, file, line);

If I add an underscore to call __assert instead of _assert everything works. It seems that it fails to recognize that it is using the GNU library

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions