fix trac 9544: gcc 4.9.0 -std=c++1y breakage

This is GCC bug PR C++/59681 but the Boost fix is trivial and the GCC
one is (probably) not.

See: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=59681
This commit is contained in:
Peter A. Bigot
2014-01-04 22:03:10 -06:00
parent a3075dd98f
commit 1b8322ecbf
2 changed files with 2 additions and 2 deletions

View File

@ -344,7 +344,7 @@ re_literal* basic_regex_creator<charT, traits>::append_literal(charT c)
m_last_state = result = static_cast<re_literal*>(getaddress(off));
charT* characters = static_cast<charT*>(static_cast<void*>(result+1));
characters[result->length] = m_traits.translate(c, m_icase);
++(result->length);
result->length += 1;
}
return result;
}