summaryrefslogtreecommitdiff
path: root/boost/regex/v4/regex_format.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/regex/v4/regex_format.hpp')
-rw-r--r--boost/regex/v4/regex_format.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/boost/regex/v4/regex_format.hpp b/boost/regex/v4/regex_format.hpp
index e9006a7bd2..f0a0a11e40 100644
--- a/boost/regex/v4/regex_format.hpp
+++ b/boost/regex/v4/regex_format.hpp
@@ -86,7 +86,7 @@ struct trivial_format_traits
}
int toi(const charT*& p1, const charT* p2, int radix)const
{
- return global_toi(p1, p2, radix, *this);
+ return (int)global_toi(p1, p2, radix, *this);
}
};
@@ -165,7 +165,7 @@ private:
std::vector<char_type> v(i, j);
const char_type* start = &v[0];
const char_type* pos = start;
- int r = m_traits.toi(pos, &v[0] + v.size(), base);
+ int r = (int)m_traits.toi(pos, &v[0] + v.size(), base);
std::advance(i, pos - start);
return r;
}