T
tonyk
Hi,
I'm wondering what is the most elegant way to do the following
Assume there are 2 or more different vendor fixed-point template classes such as
template <int T> v1_int<T>; // always signed
and
template <int T, bool S> v2_int<T,S>; // S for signed/unsigned
(not different template params)
Now I'd like to create a template class
template <int T> V_int<T>;
such that with a #define or another technique have V_int represent either v1_int<T> or v2_int<T,true> without having to re-write all of the member interfaces, overloads, etc
is that possible? Any advice appreciated
I'm wondering what is the most elegant way to do the following
Assume there are 2 or more different vendor fixed-point template classes such as
template <int T> v1_int<T>; // always signed
and
template <int T, bool S> v2_int<T,S>; // S for signed/unsigned
(not different template params)
Now I'd like to create a template class
template <int T> V_int<T>;
such that with a #define or another technique have V_int represent either v1_int<T> or v2_int<T,true> without having to re-write all of the member interfaces, overloads, etc
is that possible? Any advice appreciated