Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r54405 - trunk/boost/test/utils/basic_cstring
From: gennadiy.rozental_at_[hidden]
Date: 2009-06-27 04:56:41


Author: rogeeff
Date: 2009-06-27 04:56:40 EDT (Sat, 27 Jun 2009)
New Revision: 54405
URL: http://svn.boost.org/trac/boost/changeset/54405

Log:
static_cast is better there
Text files modified:
   trunk/boost/test/utils/basic_cstring/basic_cstring.hpp | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: trunk/boost/test/utils/basic_cstring/basic_cstring.hpp
==============================================================================
--- trunk/boost/test/utils/basic_cstring/basic_cstring.hpp (original)
+++ trunk/boost/test/utils/basic_cstring/basic_cstring.hpp 2009-06-27 04:56:40 EDT (Sat, 27 Jun 2009)
@@ -536,7 +536,7 @@
 basic_cstring<CharT>::rfind( basic_cstring<CharT> str ) const
 {
     if( str.is_empty() || str.size() > size() )
- return reinterpret_cast<size_type>(npos);
+ return static_cast<size_type>(npos);
 
     const_iterator it = end() - str.size();
     const_iterator last = begin()-1;


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