forked from boostorg/smart_ptr
avoid C style casts
[SVN r53672]
This commit is contained in:
1 parent
fc12543814
commit
28d7e348c1
1 file changed
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user