mirror of
https://github.com/boostorg/regex.git
synced 2025-07-16 13:52:17 +02:00
Don't try and parse thousands separators in number strings (VC8 bug).
[SVN r29031]
This commit is contained in:
@ -961,6 +961,8 @@ private:
|
||||
template <class charT>
|
||||
int cpp_regex_traits<charT>::toi(const charT*& first, const charT* last, int radix)const
|
||||
{
|
||||
// we do NOT want to parse any thousands separators inside the stream:
|
||||
last = std::find(first, last, BOOST_USE_FACET(std::numpunct<char>, m_pimpl->m_is.getloc()).thousands_sep());
|
||||
m_pimpl->m_sbuf.pubsetbuf(const_cast<charT*>(static_cast<const charT*>(first)), static_cast<std::streamsize>(last-first));
|
||||
m_pimpl->m_is.clear();
|
||||
if(std::abs(radix) == 16) m_pimpl->m_is >> std::hex;
|
||||
|
Reference in New Issue
Block a user