[Bug c++/13561] template functions in classes

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Sun Jan 4 08:15:00 GMT 2004


------- Additional Comments From pinskia at gcc dot gnu dot org  2004-01-04 08:15 -------
This is a dup of bug 795.
A workaround is to the following:
struct A
{
  template<typename T> void f() { }
};
class B
{
  A a;
  template<typename T> void g() { a.template f<int>(); }
}

*** This bug has been marked as a duplicate of 795 ***

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
         Resolution|                            |DUPLICATE


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=13561



More information about the Gcc-bugs mailing list