Boost logo

Boost :

From: Marco Costalba (mcostalba_at_[hidden])
Date: 2008-06-08 03:02:02

Hi all,

   I have upload in Vault the file with a new version of
multi signature boost::function extension

New in this version is a workaround for a rare compile error in MSVC
due to a bug in the compiler that requires a using::operator()
declaration also in a class where there are no other operator()
defined !

I have also added in the examples a runtime object factory, i.e. where
the key to query the factory for an object of a chosen class is a
runtime variable, not a compile time constant or something similar.
Factory allows to pass any number and type of arguments to ctor of the
chosen class.

Functionality is similar to already in Vault, but
this time I've used all the arsenal of boost, namely: fusion, switch
(in sandbox, the Vault version is broken), mpl and of course the multi
signature function (MSF) that is the core of the factory. Due to this
I think the implementation is the most minimal, clean and simple that
I know.

A peculiarity of this implementation is that MSF uses its polymorphic
function object support to bind c'tors wrappers in a naturally and
very clean way. This is a good example of how it is possible to take
advantage of polymorphic function support in real code.


Boost list run by bdawes at, gregod at, cpdaniel at, john at