
Hi John, John Dlugosz wrote:
I'm using the Microsoft 2008 compiler.
The template
template
struct is_proper_TD_types : std::tr1::integral_constant
is_Universal_time_API<T>::value &&
(std::tr1::is_same
::value ||
std::tr1::is_same
::value ||
std::tr1::is_same
::value ||
is_dimensional_time<D>::value) {};
gives an error "'T': must be a class or namespace when followed by '::'" when T is int.
Move the integral constant type you are deriving from to the template parameter list for SFINAE to apply. In this case that'll be:
template