Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53670 - trunk/boost/detail
From: gennadiy.rozental_at_[hidden]
Date: 2009-06-06 05:41:04


Author: rogeeff
Date: 2009-06-06 05:41:03 EDT (Sat, 06 Jun 2009)
New Revision: 53670
URL: http://svn.boost.org/trac/boost/changeset/53670

Log:
avoid C style casts
Text files modified:
   trunk/boost/detail/lcast_precision.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: trunk/boost/detail/lcast_precision.hpp
==============================================================================
--- trunk/boost/detail/lcast_precision.hpp (original)
+++ trunk/boost/detail/lcast_precision.hpp 2009-06-06 05:41:03 EDT (Sat, 06 Jun 2009)
@@ -173,8 +173,8 @@
 template<class Source, class Target>
 inline void lcast_set_precision(std::ios_base& stream, Source*, Target*)
 {
- std::streamsize const s = lcast_get_precision((Source*)0);
- std::streamsize const t = lcast_get_precision((Target*)0);
+ std::streamsize const s = lcast_get_precision(static_cast<Source*>(0));
+ std::streamsize const t = lcast_get_precision(static_cast<Target*>(0));
     stream.precision(s > t ? s : t);
 }
 


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