[Bug c++/34550] reference data template args appear to be broken in 4.2.1 ?

pinskia at gcc dot gnu dot org gcc-bugzilla@gcc.gnu.org
Fri Dec 21 22:27:00 GMT 2007



------- Comment #1 from pinskia at gcc dot gnu dot org  2007-12-21 22:27 -------
You forgot "const" in the second template.
Changing that to:
template < class T, const int & R >
Cat < T, R > ::  Cat ( int )
{
}

Allows for this to work.


-- 


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



More information about the Gcc-bugs mailing list