File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
libcxx/include/__expected Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -845,7 +845,7 @@ class expected : private __expected_base<_Tp, _Err> {
845
845
}
846
846
847
847
_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 () )))>,
849
849
" error_type has to be both copy constructible and constructible from decltype(std::move(error()))" );
850
850
if (!this ->__has_val ()) {
851
851
std::__throw_bad_expected_access<_Err>(std::move (error ()));
@@ -854,7 +854,7 @@ class expected : private __expected_base<_Tp, _Err> {
854
854
}
855
855
856
856
_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 () )))>,
858
858
" error_type has to be both copy constructible and constructible from decltype(std::move(error()))" );
859
859
if (!this ->__has_val ()) {
860
860
std::__throw_bad_expected_access<_Err>(std::move (error ()));
You can’t perform that action at this time.
0 commit comments