I am using gccxml on a large project and I am running into a problem
where member template instantiations are not showing up in the output.
Calling the template specializations does not even seem to help. I
have attached a simple test case that also does not work. I am using
the CVS version from February 22 2007. Does anyone have any ideas?
Thank you,
Aron Bierbaum
#include "value.h"
int main()
{
Value<float> vf;
Value<double> vd;
float f;
double d;
vf.mult(vf);
vf.mult(vd);
vd.mult(vf);
vd.mult(vd);
vf.easy(vf);
//vf.easy(vd);
//vd.easy(vf);
vd.easy(vd);
}
template <typename ValueType>
class Value
{
public:
template<typename PVT>
void mult(const Value<PVT>& other)
{
val = val * other.val;
}
void easy(const Value<ValueType> other)
{
val = val * other.val;
}
ValueType val;
};
template class Value<float>;
template void Value<float>::mult<>(const Value<float>&);
_______________________________________________
gccxml mailing list
[email protected]
http://www.gccxml.org/mailman/listinfo/gccxml