N
n.torrey.pines
What I'd like to do:
template<typename T>
struct s {
typedef typename T::foo foo; // define if and only if T::foo
exists
};
Can I do something like this with templates (AFAIK not), and if not,
are there other patterns you think I should be looking at?
TIA
template<typename T>
struct s {
typedef typename T::foo foo; // define if and only if T::foo
exists
};
Can I do something like this with templates (AFAIK not), and if not,
are there other patterns you think I should be looking at?
TIA