Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/gnu/dist/gcc4/libstdc++-v3/include/ext Explicitly use templa...



details:   https://anonhg.NetBSD.org/src/rev/beff4832f47e
branches:  trunk
changeset: 761678:beff4832f47e
user:      joerg <joerg%NetBSD.org@localhost>
date:      Sat Feb 05 00:37:40 2011 +0000

description:
Explicitly use template to allow building with the more strict
template lookup in clang. From FreeBSD.

diffstat:

 gnu/dist/gcc4/libstdc++-v3/include/ext/ropeimpl.h |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 8878bf26cf92 -r beff4832f47e gnu/dist/gcc4/libstdc++-v3/include/ext/ropeimpl.h
--- a/gnu/dist/gcc4/libstdc++-v3/include/ext/ropeimpl.h Sat Feb 05 00:24:08 2011 +0000
+++ b/gnu/dist/gcc4/libstdc++-v3/include/ext/ropeimpl.h Sat Feb 05 00:37:40 2011 +0000
@@ -432,7 +432,7 @@
     {
       size_t __old_len = __r->_M_size;
       _CharT* __new_data = (_CharT*)
-       _Data_allocate(_S_rounded_up_size(__old_len + __len));
+       _Rope_rep_base<_CharT, _Alloc>::_Data_allocate(_S_rounded_up_size(__old_len + __len));
       _RopeLeaf* __result;
 
       uninitialized_copy_n(__r->_M_data, __old_len, __new_data);
@@ -817,7 +817,7 @@
            if (__result_len > __lazy_threshold)
              goto lazy;
            __section = (_CharT*)
-             _Data_allocate(_S_rounded_up_size(__result_len));
+             _Rope_rep_base<_CharT, _Alloc>::_Data_allocate(_S_rounded_up_size(__result_len));
            try
              { (*(__f->_M_fn))(__start, __result_len, __section); }
            catch(...)



Home | Main Index | Thread Index | Old Index