mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-25 23:06:10 +01:00
Convert pointers to integrates when printing.
- handles function pointers that way too (otherwise printed as 1 by gcc and clang)
This commit is contained in:
parent
e45e3a139a
commit
440a47011f
@ -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();
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user