[PATCH] More implicit typename fixes
Nathan Myers
ncm-nospam@cantrip.org
Fri Dec 21 14:50:00 GMT 2001
On Fri, Dec 21, 2001 at 10:44:29PM +0100, Paolo Carlini wrote:
> by compiling 17_intro/headers.cc with -Wsystem-headers I spotted a few more
> implicit typename lurking in the library.
> ...
> P.S. Interestingly, this time too (as already reported in
> http://gcc.gnu.org/ml/libstdc++/2001-12/msg00327.html) I saw a spurious
> (correct?) warning for line 169 of locale_facets.h:
>
> template<typename _CharT>
> class ctype : public __ctype_abstract_base<_CharT>
> {
> public:
> // Types:
> typedef _CharT char_type;
> typedef typename ctype::mask mask; <====== 169
That doesn't look spurious to me. I suspect (without looking)
that what's wanted is
typedef typename __ctype_abstract_base<_CharT>::mask mask;
BTW, does the word "_abstract_" stuck in implementation class names
actually help anybody's comprehension? Does it mean anything?
Nathan Myers
ncm at cantrip dot org
More information about the Libstdc++
mailing list