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
539 stars 47 forks source link

fix: __has_builtin macro check #39

Closed hikarin522 closed 3 years ago

hikarin522 commented 3 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 3 years ago

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

hikarin522 commented 3 years ago

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