regex.h (match_results::format): Use char_traits.
2011-02-16 Jonathan Wakely <jwakely.gcc@gmail.com> * include/bits/regex.h (match_results::format): Use char_traits. From-SVN: r170225
This commit is contained in:
parent
45cab1d72e
commit
8c53c3ae5a
|
@ -1,3 +1,7 @@
|
|||
2011-02-16 Jonathan Wakely <jwakely.gcc@gmail.com>
|
||||
|
||||
* include/bits/regex.h (match_results::format): Use char_traits.
|
||||
|
||||
2011-02-16 Benjamin Kosnik <bkoz@redhat.com>
|
||||
|
||||
* include/std/atomic: Remove atomic_address, uplift to N3225.
|
||||
|
|
|
@ -1758,7 +1758,8 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
|||
= regex_constants::format_default) const
|
||||
{
|
||||
string_type __result;
|
||||
format(std::back_inserter(__result), __fmt + __builtin_strlen(__fmt),
|
||||
format(std::back_inserter(__result),
|
||||
__fmt + char_traits<char_type>::length(__fmt),
|
||||
__flags);
|
||||
return __result;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue