File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
libcxx/test/std/utilities/optional/optional.object Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -229,7 +229,7 @@ constexpr bool test_ref() {
229229 {
230230 Opt opt;
231231 auto & v = opt.emplace (t);
232- static_assert (std::is_same_v<T&, decltype (v)>, " " );
232+ static_assert (std::is_same_v<T&, decltype (v)>);
233233 assert (static_cast <bool >(opt) == true );
234234 assert (*opt == t);
235235 assert (&v == &*opt);
Original file line number Diff line number Diff line change @@ -67,8 +67,8 @@ int main(int, char**)
6767#if TEST_STD_VER >= 26
6868 {
6969 typedef X& T;
70- static_assert (std::is_trivially_destructible <T>::value );
71- static_assert (std::is_trivially_destructible <optional<T>>::value );
70+ static_assert (std::is_trivially_destructible_v <T>);
71+ static_assert (std::is_trivially_destructible_v <optional<T>>);
7272 }
7373 X::dtor_called = false ;
7474 X x;
@@ -79,8 +79,8 @@ int main(int, char**)
7979 assert (X::dtor_called == false );
8080
8181 {
82- static_assert (std::is_trivially_destructible <X (&)()>::value );
83- static_assert (std::is_trivially_destructible <optional<X (&)()>>::value );
82+ static_assert (std::is_trivially_destructible_v <X (&)()>);
83+ static_assert (std::is_trivially_destructible_v <optional<X (&)()>>);
8484 }
8585#endif
8686 return 0 ;
You can’t perform that action at this time.
0 commit comments