catch3
Progmasoft Catch3: an independently maintained C++17 test framework with a parallel runner, property checks, snapshots and structured results.
Clonegit clone https://git.progmasoft.com/catch3
Convert pointers to integrates when printing.
- Commit
440a47011fc5052d15f82a82f8704fc5320f67f7- Author
- Phil Nash ·
- Parents
e45e3a139ad4
Changes
include/internal/catch_tostring.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/internal/catch_tostring.hpp b/include/internal/catch_tostring.hpp index cec4cfed..ae78e1f9 100644 --- a/include/internal/catch_tostring.hpp +++ b/include/internal/catch_tostring.hpp @@ -95,7 +95,7 @@ struct StringMaker<T*> { if( !p ) return INTERNAL_CATCH_STRINGIFY( NULL ); std::ostringstream oss; - oss << p; + oss << "0x" << std::hex << reinterpret_cast<unsigned long>( p ); return oss.str(); } };