Commit 42a989fa authored by Miroslav Crnic's avatar Miroslav Crnic Committed by Facebook Github Bot

Add support for clang intrinsic constexpr

Summary: Newer versions of clang >=3.4 support intrinsic constexpr

Reviewed By: Orvid

Differential Revision: D6008856

fbshipit-source-id: 4e40a7032464216d181d76a854cafb2ab4be1be0
parent d1c5974b
...@@ -54,12 +54,11 @@ ...@@ -54,12 +54,11 @@
#pragma once #pragma once
#if !defined(__clang__) && !(defined(_MSC_VER) && (_MSC_VER < 1900)) // MSVC does not support intrinsics constexpr
#define FOLLY_INTRINSIC_CONSTEXPR constexpr #if defined(_MSC_VER)
#else
// GCC and MSVC 2015+ are the only compilers with
// intrinsics constexpr.
#define FOLLY_INTRINSIC_CONSTEXPR const #define FOLLY_INTRINSIC_CONSTEXPR const
#else
#define FOLLY_INTRINSIC_CONSTEXPR constexpr
#endif #endif
#include <cassert> #include <cassert>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment