mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-29 16:40:39 +08:00
cleanup some build error with ICC 2019 (issue #9)
This commit is contained in:
Vendored
+1
-1
@@ -2550,7 +2550,7 @@ public:
|
||||
template <typename U>
|
||||
T value_or(U&& v) && { // NOLINT(build/c++11)
|
||||
static_assert(std::is_move_constructible<value_type>::value,
|
||||
"optional<T>::value_or: T must by copy constructible");
|
||||
"optional<T>::value_or: T must by move constructible");
|
||||
static_assert(std::is_convertible<U&&, value_type>::value,
|
||||
"optional<T>::value_or: U must be convertible to T");
|
||||
return static_cast<bool>(*this) ? std::move(**this)
|
||||
|
||||
Vendored
+4
-23
@@ -554,24 +554,12 @@
|
||||
#define PHMAP_ATTRIBUTE_COLD
|
||||
#endif
|
||||
|
||||
#if PHMAP_HAVE_CPP_ATTRIBUTE(clang::xray_always_instrument) && \
|
||||
!defined(PHMAP_NO_XRAY_ATTRIBUTES)
|
||||
#define PHMAP_XRAY_ALWAYS_INSTRUMENT [[clang::xray_always_instrument]]
|
||||
#define PHMAP_XRAY_NEVER_INSTRUMENT [[clang::xray_never_instrument]]
|
||||
#if PHMAP_HAVE_CPP_ATTRIBUTE(clang::xray_log_args)
|
||||
#define PHMAP_XRAY_LOG_ARGS(N) \
|
||||
[[clang::xray_always_instrument, clang::xray_log_args(N)]]
|
||||
#if defined(__clang__)
|
||||
#if PHMAP_HAVE_CPP_ATTRIBUTE(clang::reinitializes)
|
||||
#define PHMAP_ATTRIBUTE_REINITIALIZES [[clang::reinitializes]]
|
||||
#else
|
||||
#define PHMAP_XRAY_LOG_ARGS(N) [[clang::xray_always_instrument]]
|
||||
#define PHMAP_ATTRIBUTE_REINITIALIZES
|
||||
#endif
|
||||
#else
|
||||
#define PHMAP_XRAY_ALWAYS_INSTRUMENT
|
||||
#define PHMAP_XRAY_NEVER_INSTRUMENT
|
||||
#define PHMAP_XRAY_LOG_ARGS(N)
|
||||
#endif
|
||||
|
||||
#if PHMAP_HAVE_CPP_ATTRIBUTE(clang::reinitializes)
|
||||
#define PHMAP_ATTRIBUTE_REINITIALIZES [[clang::reinitializes]]
|
||||
#else
|
||||
#define PHMAP_ATTRIBUTE_REINITIALIZES
|
||||
#endif
|
||||
@@ -601,13 +589,6 @@
|
||||
#define PHMAP_ATTRIBUTE_FUNC_ALIGN(bytes)
|
||||
#endif
|
||||
|
||||
#if PHMAP_HAVE_CPP_ATTRIBUTE(clang::require_constant_initialization)
|
||||
#define PHMAP_CONST_INIT [[clang::require_constant_initialization]]
|
||||
#else
|
||||
#define PHMAP_CONST_INIT
|
||||
#endif // PHMAP_HAVE_CPP_ATTRIBUTE(clang::require_constant_initialization)
|
||||
|
||||
|
||||
// ----------------------------------------------------------------------
|
||||
// Figure out SSE support
|
||||
// ----------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user