From: Roger Sayle Date: Sun, 30 Jul 2006 16:42:39 +0000 (+0000) Subject: codevt_specializations.h (__iconv_adaptor): Use identifier _Tp instead of _T in templ... X-Git-Tag: releases/gcc-4.2.0~1914 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bd11bebe1b23ef6604982e3bc4e64e7f3adda83b;p=thirdparty%2Fgcc.git codevt_specializations.h (__iconv_adaptor): Use identifier _Tp instead of _T in template argument to avoid conflict. * include/ext/codevt_specializations.h (__iconv_adaptor): Use identifier _Tp instead of _T in template argument to avoid conflict. From-SVN: r115823 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 33c2d80a8069..addb120314c6 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,3 +1,8 @@ +2006-07-30 Roger Sayle + + * include/ext/codevt_specializations.h (__iconv_adaptor): Use + identifier _Tp instead of _T in template argument to avoid conflict. + 2006-07-30 Paolo Carlini * include/bits/stl_algo.h (stable_sort): Uglify the buf variable. diff --git a/libstdc++-v3/include/ext/codecvt_specializations.h b/libstdc++-v3/include/ext/codecvt_specializations.h index 137c4a7fccdb..f0a6bbed4d65 100644 --- a/libstdc++-v3/include/ext/codecvt_specializations.h +++ b/libstdc++-v3/include/ext/codecvt_specializations.h @@ -301,12 +301,12 @@ _GLIBCXX_BEGIN_NAMESPACE(std) // argument to iconv(): SUSv2 and others use 'const char**', but glibc 2.2 // uses 'char**', which matches the POSIX 1003.1-2001 standard. // Using this adaptor, g++ will do the work for us. - template + template inline size_t - __iconv_adaptor(size_t(*__func)(iconv_t, _T, size_t*, char**, size_t*), + __iconv_adaptor(size_t(*__func)(iconv_t, _Tp, size_t*, char**, size_t*), iconv_t __cd, char** __inbuf, size_t* __inbytes, char** __outbuf, size_t* __outbytes) - { return __func(__cd, (_T)__inbuf, __inbytes, __outbuf, __outbytes); } + { return __func(__cd, (_Tp)__inbuf, __inbytes, __outbuf, __outbytes); } template codecvt_base::result