Is it possible in the following scenario to define dedicated constructors for certain specializations of a template:
template<typename T, size_t D>
class vector {
T values[D];
public:
vector();
};
Constructors I want to add dependent on the D-argument:
template<typename T>
vector<T, 2>::vector(T t1, T t2) { ... }
template<typename T>
vector<T, 3>::vector(T t1, T t2, T t3) { ... }
template<typename T>
vector<T, 4>::vector(T t1, T t2, T t3, T t4) { ... }
Hope this helps.