mirror of
https://github.com/greg7mdp/parallel-hashmap.git
synced 2026-08-30 00:50:38 +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)
|
||||
|
||||
Reference in New Issue
Block a user