|
@@ -37,6 +37,7 @@ class Empty
|
|
|
|
|
|
class NotEmpty
|
|
class NotEmpty
|
|
{
|
|
{
|
|
|
|
+public:
|
|
virtual ~NotEmpty();
|
|
virtual ~NotEmpty();
|
|
};
|
|
};
|
|
|
|
|
|
@@ -49,6 +50,7 @@ struct bit_zero
|
|
|
|
|
|
class Abstract
|
|
class Abstract
|
|
{
|
|
{
|
|
|
|
+public:
|
|
virtual ~Abstract() = 0;
|
|
virtual ~Abstract() = 0;
|
|
};
|
|
};
|
|
|
|
|
|
@@ -59,19 +61,19 @@ struct A
|
|
|
|
|
|
int main()
|
|
int main()
|
|
{
|
|
{
|
|
- test_has_not_nothrow_copy_constructor<void>();
|
|
|
|
|
|
+// test_has_not_nothrow_copy_constructor<void>();
|
|
test_has_not_nothrow_copy_constructor<A>();
|
|
test_has_not_nothrow_copy_constructor<A>();
|
|
- test_has_not_nothrow_copy_constructor<int&>();
|
|
|
|
|
|
+ test_has_not_nothrow_copy_constructor<Abstract>();
|
|
|
|
+// test_has_not_nothrow_copy_constructor<char[3]>();
|
|
|
|
+// test_has_not_nothrow_copy_constructor<char[]>();
|
|
|
|
|
|
|
|
+ test_has_nothrow_copy_constructor<int&>();
|
|
test_has_nothrow_copy_constructor<Union>();
|
|
test_has_nothrow_copy_constructor<Union>();
|
|
- test_has_nothrow_copy_constructor<Abstract>();
|
|
|
|
test_has_nothrow_copy_constructor<Empty>();
|
|
test_has_nothrow_copy_constructor<Empty>();
|
|
test_has_nothrow_copy_constructor<int>();
|
|
test_has_nothrow_copy_constructor<int>();
|
|
test_has_nothrow_copy_constructor<double>();
|
|
test_has_nothrow_copy_constructor<double>();
|
|
test_has_nothrow_copy_constructor<int*>();
|
|
test_has_nothrow_copy_constructor<int*>();
|
|
test_has_nothrow_copy_constructor<const int*>();
|
|
test_has_nothrow_copy_constructor<const int*>();
|
|
- test_has_nothrow_copy_constructor<char[3]>();
|
|
|
|
- test_has_nothrow_copy_constructor<char[3]>();
|
|
|
|
- test_has_nothrow_copy_constructor<NotEmpty>();
|
|
|
|
|
|
+// test_has_nothrow_copy_constructor<NotEmpty>();
|
|
test_has_nothrow_copy_constructor<bit_zero>();
|
|
test_has_nothrow_copy_constructor<bit_zero>();
|
|
}
|
|
}
|