|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r53672 - trunk/boost/smart_ptr/detail
From: gennadiy.rozental_at_[hidden]
Date: 2009-06-06 05:44:37
Author: rogeeff
Date: 2009-06-06 05:44:36 EDT (Sat, 06 Jun 2009)
New Revision: 53672
URL: http://svn.boost.org/trac/boost/changeset/53672
Log:
avoid C style casts
Text files modified:
trunk/boost/smart_ptr/detail/sp_convertible.hpp | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
Modified: trunk/boost/smart_ptr/detail/sp_convertible.hpp
==============================================================================
--- trunk/boost/smart_ptr/detail/sp_convertible.hpp (original)
+++ trunk/boost/smart_ptr/detail/sp_convertible.hpp 2009-06-06 05:44:36 EDT (Sat, 06 Jun 2009)
@@ -45,7 +45,7 @@
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
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk