Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r53667 - trunk/boost/mpl
From: gennadiy.rozental_at_[hidden]
Date: 2009-06-06 05:34:12


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

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

Modified: trunk/boost/mpl/for_each.hpp
==============================================================================
--- trunk/boost/mpl/for_each.hpp (original)
+++ trunk/boost/mpl/for_each.hpp 2009-06-06 05:34:12 EDT (Sat, 06 Jun 2009)
@@ -76,7 +76,7 @@
         
         typedef typename mpl::next<Iterator>::type iter;
         for_each_impl<boost::is_same<iter,LastIterator>::value>
- ::execute((iter*)0, (LastIterator*)0, (TransformFunc*)0, f);
+ ::execute( static_cast<iter*>(0), static_cast<LastIterator*>(0), static_cast<TransformFunc*>(0), f);
     }
 };
 
@@ -98,7 +98,7 @@
     typedef typename end<Sequence>::type last;
 
     aux::for_each_impl< boost::is_same<first,last>::value >
- ::execute((first*)0, (last*)0, (TransformOp*)0, f);
+ ::execute(static_cast<first*>(0), static_cast<last*>(0), static_cast<TransformOp*>(0), f);
 }
 
 template<


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