
3 Feb
2009
3 Feb
'09
1:13 p.m.
Hi All, I'm looking for template<typename> class F such that F<T>::type is T::type if it exists, T itself otherwise. I was hoping apply<T>::type would work, by analogy with the well known example apply<std::vector<_>,X>::type, but apparently not.