Skip to content

Commit 50c7eff

Browse files
committed
Fix libc++ testsY
1 parent 866ca17 commit 50c7eff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libcxx/include/__expected/expected.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ class expected : private __expected_base<_Tp, _Err> {
845845
}
846846

847847
_LIBCPP_HIDE_FROM_ABI constexpr const _Tp&& value() const&& {
848-
static_assert(is_copy_constructible_v<_Err> && is_constructible_v<_Err, decltype(std::move(error()))>,
848+
static_assert(bool(is_copy_constructible_v<_Err> && is_constructible_v<_Err, decltype(std::move(error())))>,
849849
"error_type has to be both copy constructible and constructible from decltype(std::move(error()))");
850850
if (!this->__has_val()) {
851851
std::__throw_bad_expected_access<_Err>(std::move(error()));
@@ -854,7 +854,7 @@ class expected : private __expected_base<_Tp, _Err> {
854854
}
855855

856856
_LIBCPP_HIDE_FROM_ABI constexpr _Tp&& value() && {
857-
static_assert(is_copy_constructible_v<_Err> && is_constructible_v<_Err, decltype(std::move(error()))>,
857+
static_assert(bool(is_copy_constructible_v<_Err> && is_constructible_v<_Err, decltype(std::move(error())))>,
858858
"error_type has to be both copy constructible and constructible from decltype(std::move(error()))");
859859
if (!this->__has_val()) {
860860
std::__throw_bad_expected_access<_Err>(std::move(error()));

0 commit comments

Comments
 (0)