Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r74044 - sandbox/coerce/boost/coerce
From: vexocide_at_[hidden]
Date: 2011-08-24 08:53:42


Author: vexocide
Date: 2011-08-24 08:53:41 EDT (Wed, 24 Aug 2011)
New Revision: 74044
URL: http://svn.boost.org/trac/boost/changeset/74044

Log:
Array indexing
Text files modified:
   sandbox/coerce/boost/coerce/string.hpp | 4 ++--
   1 files changed, 2 insertions(+), 2 deletions(-)

Modified: sandbox/coerce/boost/coerce/string.hpp
==============================================================================
--- sandbox/coerce/boost/coerce/string.hpp (original)
+++ sandbox/coerce/boost/coerce/string.hpp 2011-08-24 08:53:41 EDT (Wed, 24 Aug 2011)
@@ -50,12 +50,12 @@
 
         static inline const_iterator
         begin(T const(& value)[N]) {
- return &value[0];
+ return value;
         }
 
         static inline const_iterator
         end(T const(& value)[N]) {
- return &value[0] + length(value);
+ return value + length(value);
         }
 
         static inline size_type


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