avoid C style casts

[SVN r53672]
This commit is contained in:
Gennadiy Rozental
2009-06-06 09:44:36 +00:00
parent fc12543814
commit 28d7e348c1

View File

@ -45,7 +45,7 @@ template< class Y, class T > struct sp_convertible
static yes f( T* );
static no f( ... );
enum _vt { value = sizeof( f( (Y*)0 ) ) == sizeof(yes) };
enum _vt { value = sizeof( f( static_cast<Y*>(0) ) ) == sizeof(yes) };
};
struct sp_empty