Boost logo

Boost Users :

Subject: Re: [Boost-users] Metaprogramming + Multiple Inheritance?
From: Dave Abrahams (dave_at_[hidden])
Date: 2011-09-04 17:05:08


on Sun Sep 04 2011, Hossein Haeri <powerprogman-AT-yahoo.com> wrote:

> Dear all,
> I am looking for problems a reasonable design for solving which
> requires mixing (template/preprocessor) metaprogramming and multiple
> inheritance, say for a single class. In particular, has any part of
> the Boost library been designed with this mixture?
> TIA,--Hossein

The classic example is the implementation of a visitor. See
Alexandrescu's "Modern C++ Design" for an extensive discussion.

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net