| 29 | struct some_other_struct {int i{0};}; |
| 30 | |
| 31 | void swap(some_other_struct& a, some_other_struct& b) |
| 32 | { |
| 33 | std::swap(a.i, b.i); |
| 34 | throw std::runtime_error("toy example"); |
| 35 | } |
| 36 | |
| 37 | static_assert(dlib::is_swappable<some_other_struct>::value, "oops"); |
| 38 | static_assert(!dlib::is_nothrow_swappable<some_other_struct>::value, "oops"); |
no outgoing calls
no test coverage detected