@@ -259,7 +259,7 @@ std::string to_string(const char32_t c)
259259#endif
260260
261261template <typename T, typename U>
262- void test_impl (bool success,
262+ bool test_impl (bool success,
263263 T const & l,
264264 U const & r,
265265 const char * expr,
@@ -276,18 +276,19 @@ void test_impl(bool success,
276276 } else
277277 boost::locale::test::report_error (expr, file, line);
278278 }
279+ return success;
279280}
280281
281- void test_impl (bool success, const char * reason, const char * file, int line)
282+ bool test_impl (bool success, const char * reason, const char * file, int line)
282283{
283- test_impl (success, nullptr , nullptr , reason, nullptr , file, line);
284+ return test_impl (success, nullptr , nullptr , reason, nullptr , file, line);
284285}
285286
286287#define BOOST_LOCALE_TEST_OP_IMPL (name, test_op, fail_op ) \
287288 template <typename T, typename U> \
288- void test_##name##_impl(T const & l, U const & r, const char * expr, const char * file, int line) \
289+ bool test_##name##_impl(T const & l, U const & r, const char * expr, const char * file, int line) \
289290 { \
290- test_impl (l test_op r, l, r, expr, #fail_op, file, line); \
291+ return test_impl (l test_op r, l, r, expr, #fail_op, file, line); \
291292 }
292293
293294BOOST_LOCALE_TEST_OP_IMPL (eq, ==, !=)
0 commit comments