|
@@ -261,9 +261,13 @@ int main() {
|
|
test_copy_ctor_valueless_by_exception();
|
|
test_copy_ctor_valueless_by_exception();
|
|
test_copy_ctor_sfinae();
|
|
test_copy_ctor_sfinae();
|
|
test_constexpr_copy_ctor_extension();
|
|
test_constexpr_copy_ctor_extension();
|
|
|
|
+#if 0
|
|
|
|
+// disable this for the moment; it fails on older compilers.
|
|
|
|
+// Need to figure out which compilers will support it.
|
|
{ // This is the motivating example from P0739R0
|
|
{ // This is the motivating example from P0739R0
|
|
std::variant<int, double> v1(3);
|
|
std::variant<int, double> v1(3);
|
|
std::variant v2 = v1;
|
|
std::variant v2 = v1;
|
|
(void) v2;
|
|
(void) v2;
|
|
}
|
|
}
|
|
|
|
+#endif
|
|
}
|
|
}
|