From 9dd5285dbbf459b8a78580571fd8a782bf307280 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Thu, 9 Feb 2017 23:14:07 +0200 Subject: [PATCH] Handle char*, volatile* properly in BOOST_TEST_EQ/NE --- include/boost/core/lightweight_test.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/include/boost/core/lightweight_test.hpp b/include/boost/core/lightweight_test.hpp index 804c8f4..d1766a4 100644 --- a/include/boost/core/lightweight_test.hpp +++ b/include/boost/core/lightweight_test.hpp @@ -107,6 +107,10 @@ template inline const T& test_output_impl(const T& v) { return v; } inline const void* test_output_impl(const char* v) { return v; } inline const void* test_output_impl(const unsigned char* v) { return v; } inline const void* test_output_impl(const signed char* v) { return v; } +inline const void* test_output_impl(char* v) { return v; } +inline const void* test_output_impl(unsigned char* v) { return v; } +inline const void* test_output_impl(signed char* v) { return v; } +template inline const void* test_output_impl(T volatile* v) { return const_cast(v); } template inline void test_eq_impl( char const * expr1, char const * expr2, char const * file, int line, char const * function, T const & t, U const & u )