[mpl] public inheritance

Hello! Can I use public or protected inheritance using inherit and inherit_linearly metafunctions?

on Sat Apr 07 2007, Igor Mikushkin
Hello!
Can I use public or protected inheritance using inherit and inherit_linearly metafunctions?
public, as http://www.boost.org/libs/mpl/doc/refmanual/inherit.html describes. Frankly I don't find inherit_linearly to provide a terribly useful level of abstraction, as it mostly just reorders the arguments to fold, but using that information, it should be easy to get protected or private inheritance if that's what you want. -- Dave Abrahams Boost Consulting www.boost-consulting.com Don't Miss BoostCon 2007! ==> http://www.boostcon.com

David Abrahams wrote:
on Sat Apr 07 2007, Igor Mikushkin
wrote: Hello!
Can I use public or protected inheritance using inherit and inherit_linearly metafunctions?
public, as http://www.boost.org/libs/mpl/doc/refmanual/inherit.html describes.
Frankly I don't find inherit_linearly to provide a terribly useful level of abstraction, as it mostly just reorders the arguments to fold, but using that information, it should be easy to get protected or private inheritance if that's what you want.
Thank you.
participants (2)
-
David Abrahams
-
Igor Mikushkin