Boost logo

Boost :

From: Ion Gaztañaga (igaztanaga_at_[hidden])
Date: 2007-08-26 05:38:00


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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk