Naios / function2

Improved and configurable drop-in replacement to std::function that supports move only types, multiple overloads and more
http://naios.github.io/function2
Boost Software License 1.0
545 stars 46 forks source link

fix: __has_builtin macro check #39

Closed hikarin522 closed 4 years ago

hikarin522 commented 4 years ago

@Naios


What was a problem?

A compile error will occur if "__has_builtin" is not defined.

How this PR fixes the problem?

Fixed macro check for "__has_builtin".

Naios commented 4 years ago

In which cases is __builtin_unreachable and __builtin_trap not defined for the currently supported GCC and Clang versions?

hikarin522 commented 4 years ago

g++-4.9 -std=gnu++1y