forked from boostorg/regex
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:
@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user