Merge pull request #115 from gongminmin/ClangC2

Fix a compiling problem under Clang/C2.
This commit is contained in:
jzmaddock
2017-02-07 18:25:19 +00:00
committed by GitHub

View File

@ -57,7 +57,7 @@
#define BOOST_HAS_NRVO
// Branch prediction hints
#if defined(__has_builtin)
#if !defined (__c2__) && defined(__has_builtin)
#if __has_builtin(__builtin_expect)
#define BOOST_LIKELY(x) __builtin_expect(x, 1)
#define BOOST_UNLIKELY(x) __builtin_expect(x, 0)