
26 Aug
2007
26 Aug
'07
9:38 a.m.
Steven Watanabe wrote:
template<bool is_static, class Derived> struct base;
template<class Derived> struct base<true, Derived> { static R f(); };
template<class Derived> struct base<false, Derived> { R f(); };
template<class T> class C : base<f_is_static<T>::value, C<T> > {};
Thanks for your help! So a friendship relationship would be allow implementing the function in the base class. Regards, Ion