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 <> 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

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at