You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just pushed some implementations of HEDLEY_LIKELY, HEDLEY_UNLIKELY, HEDLEY_PREDICT, HEDLEY_PREDICT_TRUE, and HEDLEY_PREDICT_FALSE to a new wip/c++2a branch (commit ID f57289e). They work as expected on GCC 9 (AFAIK the only compiler which supports the [[likely]]/[[unlikely]] attributes, but I'd like to do a bit more testing before including them in a release.
The good news is that Microsoft generally implements new C++ features (unlike C), so the next release of Visual Studio will probably support the required attributes, meaning we may actually get a working implementation on MSVC. Most other compilers already support __builtin_expect, so MSVC is where this should be important.
The text was updated successfully, but these errors were encountered:
I just pushed some implementations of
HEDLEY_LIKELY
,HEDLEY_UNLIKELY
,HEDLEY_PREDICT
,HEDLEY_PREDICT_TRUE
, andHEDLEY_PREDICT_FALSE
to a new wip/c++2a branch (commit ID f57289e). They work as expected on GCC 9 (AFAIK the only compiler which supports the[[likely]]
/[[unlikely]]
attributes, but I'd like to do a bit more testing before including them in a release.The good news is that Microsoft generally implements new C++ features (unlike C), so the next release of Visual Studio will probably support the required attributes, meaning we may actually get a working implementation on MSVC. Most other compilers already support
__builtin_expect
, so MSVC is where this should be important.The text was updated successfully, but these errors were encountered: