Sorry for the incomplete previous mail, which was spuriously sent...
Hello again,
a little addition to my previous post: In a non-main c++ file (say
A.cpp), I write the code
template int max (int x, int y); // OK
template double max (double x, double y); // Fails
in order to instan
Hello again,
a little addition to my previous post: In a non-main c++ file (say
A.cpp), I write the code
template int max (int x, int y); // OK
template double max (double x, double y); // Fails
in order to instantiate the template, so that the function "double
max(double,double)"
Hello,
I do not have a login to submit a bug via bugzilla, so I use the
second method in http://gcc.gnu.org/bugs.html#where and attach all the
required info.
In short, compiling w/ g++-4.3
==
template Comparable max (Comparable x, Comparable y)
{