|
10 | 10 | #include <sigc++/trackable.h>
|
11 | 11 |
|
12 | 12 | // Test the expected special members and conversions, esp. NOT copyable BUT movable.
|
13 |
| -static_assert( std::is_nothrow_default_constructible_v<sigc::scoped_connection>); |
14 |
| -static_assert(not std::is_copy_constructible_v <sigc::scoped_connection>); |
15 |
| -static_assert(not std::is_copy_assignable_v <sigc::scoped_connection>); |
16 |
| -static_assert( std::is_nothrow_move_constructible_v <sigc::scoped_connection>); |
17 |
| -static_assert( std::is_move_assignable_v <sigc::scoped_connection>); |
18 |
| -static_assert( std::is_nothrow_swappable_v <sigc::scoped_connection>); |
| 13 | +static_assert( std::is_nothrow_default_constructible_v<sigc::scoped_connection>); |
| 14 | +static_assert(!std::is_copy_constructible_v <sigc::scoped_connection>); |
| 15 | +static_assert(!std::is_copy_assignable_v <sigc::scoped_connection>); |
| 16 | +static_assert( std::is_nothrow_move_constructible_v <sigc::scoped_connection>); |
| 17 | +static_assert( std::is_move_assignable_v <sigc::scoped_connection>); |
| 18 | +static_assert( std::is_nothrow_swappable_v <sigc::scoped_connection>); |
19 | 19 | // TODO: C++20: Test the stronger std::is_nothrow_convertible_v; it should pass.
|
20 |
| -static_assert( std::is_convertible_v<sigc::connection, sigc::scoped_connection>); |
21 |
| -static_assert(not std::is_convertible_v<sigc::scoped_connection, sigc::connection>); |
22 |
| -static_assert( std::is_assignable_v <sigc::scoped_connection, sigc::connection>); |
23 |
| -static_assert(not std::is_assignable_v <sigc::connection, sigc::scoped_connection>); |
| 20 | +static_assert( std::is_convertible_v<sigc::connection, sigc::scoped_connection>); |
| 21 | +static_assert(!std::is_convertible_v<sigc::scoped_connection, sigc::connection>); |
| 22 | +static_assert( std::is_assignable_v <sigc::scoped_connection, sigc::connection>); |
| 23 | +static_assert(!std::is_assignable_v <sigc::connection, sigc::scoped_connection>); |
24 | 24 |
|
25 | 25 | namespace
|
26 | 26 | {
|
|
0 commit comments