Optional icon indicating copy to clipboard operation
Optional copied to clipboard

Library does not compile with G++ under OS X

Open nicola-gigante opened this issue 9 years ago • 1 comments

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

nicola-gigante avatar Dec 12 '15 17:12 nicola-gigante

Does it work now?

akrzemi1 avatar Dec 14 '15 09:12 akrzemi1