File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed
libcxx/test/std/utilities/variant/variant.variant Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -143,10 +143,8 @@ void test_T_assignment_sfinae() {
143
143
struct X {
144
144
operator void *();
145
145
};
146
- static_assert (!std::is_assignable<V, X>::value,
147
- " no boolean conversion in operator=" );
148
- static_assert (std::is_assignable<V, std::false_type>::value,
149
- " converted to bool in operator=" );
146
+ static_assert (!std::is_assignable<V, X>::value, " no boolean conversion in operator=" );
147
+ static_assert (std::is_assignable<V, std::false_type>::value, " converted to bool in operator=" );
150
148
}
151
149
{
152
150
struct X {};
Original file line number Diff line number Diff line change @@ -68,8 +68,7 @@ void test_T_ctor_sfinae() {
68
68
}
69
69
{
70
70
using V = std::variant<std::string, float >;
71
- static_assert (!std::is_constructible<V, int >::value,
72
- " no matching constructor" );
71
+ static_assert (!std::is_constructible<V, int >::value, " no matching constructor" );
73
72
}
74
73
{
75
74
using V = std::variant<std::unique_ptr<int >, bool >;
@@ -78,10 +77,8 @@ void test_T_ctor_sfinae() {
78
77
struct X {
79
78
operator void *();
80
79
};
81
- static_assert (!std::is_constructible<V, X>::value,
82
- " no boolean conversion in constructor" );
83
- static_assert (std::is_constructible<V, std::false_type>::value,
84
- " converted to bool in constructor" );
80
+ static_assert (!std::is_constructible<V, X>::value, " no boolean conversion in constructor" );
81
+ static_assert (std::is_constructible<V, std::false_type>::value, " converted to bool in constructor" );
85
82
}
86
83
{
87
84
struct X {};
You can’t perform that action at this time.
0 commit comments