Boost logo

Boost :

Subject: Re: [boost] spoiled function declarations
From: Roland Bock (rbock_at_[hidden])
Date: 2010-05-05 10:07:25

Lorenzo Caminiti wrote:
> Hello all,
> I have been looking to which Boost libraries provide an interface that
> "spoils" usual C++ function declaration using macros. So far I found
> that both Boost.ConceptCheck and Boost.Parameter replace usual C++
> function declaration using macros (see sample code below).

Not sure if this is what you are looking for, but Boost.Iostreams
constructs the interface of several classes via macros.

For instance, this (from boost/iostreams/stream.hpp) translates into
some dozen public member functions:

BOOST_IOSTREAMS_FORWARD( stream, open_impl, Device,
                             BOOST_IOSTREAMS_PUSH_ARGS )



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