Skip to content

Commit c4e5a65

Browse files
committed
Add a test_output_impl overload for char8_t
1 parent abb1b9c commit c4e5a65

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

include/boost/core/lightweight_test.hpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,16 @@ inline std::string test_output_impl( char const& v )
207207
}
208208
}
209209

210+
#if defined(__cpp_char8_t) && __cpp_char8_t >= 201811L
211+
212+
inline std::string test_output_impl( char8_t const& v )
213+
{
214+
// assume that char is ASCII, compatible with char8_t
215+
return test_output_impl( static_cast<char>( v ) );
216+
}
217+
218+
#endif
219+
210220
// predicates
211221

212222
struct lw_test_eq

0 commit comments

Comments
 (0)