cleanup some build error with ICC 2019 (issue #9)

This commit is contained in:
greg
2019-05-10 19:48:31 -04:00
parent 470f0644c0
commit 141c4da24e
3 changed files with 17 additions and 24 deletions
+1 -1
View File
@@ -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)