$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
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