Whats wrong with the folowing simple sample?
struct mystruct
{
double x, y;
mystruct(double z) { x=z; y=z; }
};
template <class Real>
class myclass
{
public:
Real x;
myclass(Real x) { this->x=x; }
};
int main()
{
mystruct s(1.,2.);
myclass<mystruct> obj(s);
return 0;
}
The error message look for mystruct::mystruct() constructor,
but I do not know from which point want to call this constructor!