From 33fb2b72f4152c8dc0c385c02fd62e64dc3c7ad5 Mon Sep 17 00:00:00 2001 From: bolero-MURAKAMI Date: Mon, 5 Sep 2011 12:13:41 +0900 Subject: [PATCH] =?UTF-8?q?atring=20=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sprout/string.hpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/sprout/string.hpp b/sprout/string.hpp index 52a61a32..a73c821d 100644 --- a/sprout/string.hpp +++ b/sprout/string.hpp @@ -56,22 +56,22 @@ namespace sprout { } } iterator begin() SPROUT_NOEXCEPT { - return elems; + return &elems[0]; } SPROUT_CONSTEXPR const_iterator begin() const SPROUT_NOEXCEPT { - return elems; + return &elems[0]; } SPROUT_CONSTEXPR const_iterator cbegin() const SPROUT_NOEXCEPT { - return elems; + return &elems[0]; } iterator end() SPROUT_NOEXCEPT { - return elems + size(); + return &elems[0] + size(); } SPROUT_CONSTEXPR const_iterator end() const SPROUT_NOEXCEPT { - return elems + size(); + return &elems[0] + size(); } SPROUT_CONSTEXPR const_iterator cend() const SPROUT_NOEXCEPT { - return elems + size(); + return &elems[0] + size(); } reverse_iterator rbegin() SPROUT_NOEXCEPT { return reverse_iterator(begin()); @@ -118,16 +118,16 @@ namespace sprout { return elems[size() - 1]; } pointer data() SPROUT_NOEXCEPT { - return elems; + return &elems[0]; } SPROUT_CONSTEXPR const_pointer data() const SPROUT_NOEXCEPT { - return elems; + return &elems[0]; } pointer c_array() SPROUT_NOEXCEPT { - return elems; + return &elems[0]; } const_pointer c_str() const SPROUT_NOEXCEPT { - return elems; + return &elems[0]; } void assign(const_reference value) { fill(value);