| 178 | } |
| 179 | |
| 180 | void test_set_i() |
| 181 | { |
| 182 | A a{1}; |
| 183 | D d{1}; |
| 184 | DLIB_TEST(!try_set_i(a, 2)); |
| 185 | DLIB_TEST(a.i == 1); |
| 186 | DLIB_TEST(try_set_i(d, 2)); |
| 187 | DLIB_TEST(d.i == 2); |
| 188 | } |
| 189 | |
| 190 | class constexpr_if_test : public tester |
| 191 | { |
no test coverage detected