|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r54404 - trunk/boost/test/utils/basic_cstring
From: gennadiy.rozental_at_[hidden]
Date: 2009-06-27 04:51:15
Author: rogeeff
Date: 2009-06-27 04:51:13 EDT (Sat, 27 Jun 2009)
New Revision: 54404
URL: http://svn.boost.org/trac/boost/changeset/54404
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:51:13 EDT (Sat, 27 Jun 2009)
@@ -218,7 +218,7 @@
basic_cstring<CharT>::at( size_type index ) const
{
if( m_begin + index >= m_end )
- return reinterpret_cast<value_type>(0);
+ return static_cast<value_type>(0);
return m_begin[index];
}
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