diff options
Diffstat (limited to 'boost/regex/v4/regex_raw_buffer.hpp')
-rw-r--r-- | boost/regex/v4/regex_raw_buffer.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/boost/regex/v4/regex_raw_buffer.hpp b/boost/regex/v4/regex_raw_buffer.hpp index fcdb856a55..f1f4f50ae5 100644 --- a/boost/regex/v4/regex_raw_buffer.hpp +++ b/boost/regex/v4/regex_raw_buffer.hpp @@ -138,12 +138,12 @@ public: size_type BOOST_REGEX_CALL size() { - return end - start; + return size_type(end - start); } size_type BOOST_REGEX_CALL capacity() { - return last - start; + return size_type(last - start); } void* BOOST_REGEX_CALL data()const @@ -153,7 +153,7 @@ public: size_type BOOST_REGEX_CALL index(void* ptr) { - return static_cast<pointer>(ptr) - static_cast<pointer>(data()); + return size_type(static_cast<pointer>(ptr) - static_cast<pointer>(data())); } void BOOST_REGEX_CALL clear() |