This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: c++/9634: Problems with templates (SFINAE)
- From: Paolo Carlini <pcarlini at unitus dot it>
- To: gcc-gnats at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, poschmid at lbl dot gov
- Date: Sun, 09 Feb 2003 09:56:30 +0100
- Subject: Re: c++/9634: Problems with templates (SFINAE)
First blush seems "obvious" that a template keyword is
needed:
9c9
< enum { Yes = sizeof(IsFunctionT<T>::test<T>(0)) == 1 };
---
> enum { Yes = sizeof(IsFunctionT<T>::template test<T>(0)) == 1 };
however, some front-ends (e.g., EDG) accept it also without...
Paolo.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=9634