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:
Phil Nash 2014-01-04 19:12:05 +00:00
parent e45e3a139a
commit 440a47011f

View File

@ -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();
}
};