I have a class
template <class Vector_t>
class A;
where Vector_t is some sort of vector. I want to provide different
specializations for real and for complex vectors. I need the following:
// Real vectors:
A< valarray<double > >; // templated
A< MyRealVector >; // non-tempalted
// Complex vectors:
A< vector< complex<double> >; // templated
A< MyComplexVector >; // non-templated.
Is this possible? How would I do that? Bad design? What's the right way?
Thanks!
template <class Vector_t>
class A;
where Vector_t is some sort of vector. I want to provide different
specializations for real and for complex vectors. I need the following:
// Real vectors:
A< valarray<double > >; // templated
A< MyRealVector >; // non-tempalted
// Complex vectors:
A< vector< complex<double> >; // templated
A< MyComplexVector >; // non-templated.
Is this possible? How would I do that? Bad design? What's the right way?
Thanks!
Comment