26 Apr
2010
26 Apr
'10
6:25 a.m.
----- Original Message -----
From: "John Dlugosz"
I tried something like this: First, the general form in one header known by everything:
template
dim_s foo (const T1& left, const T2& right); Then, in a header that gets more concrete, provide its own form that is meant to be used when objects of those types are involved:
template
typename enable_if_c< is_base_of ::value && is_base_of ::value, dim_s>::type foo (const T1& left, const T2& right);
What about overloading with the genericbase class? dim_s foo (const genericbase& left, const genericbase& right); Am I missing something? Best, Vicente