Boost logo

Boost :

From: David Abrahams (david.abrahams_at_[hidden])
Date: 2002-02-04 10:25:29

----- Original Message -----
From: "Douglas Gregor" <gregod_at_[hidden]>
To: <boost_at_[hidden]>
Sent: Monday, February 04, 2002 10:10 AM
Subject: Re: [boost] boost::function and the small string optimization

> On Monday 04 February 2002 07:59 am, you wrote:
> > I think that if we add another template parameter to boost::function,
> > Storage, with requirements that
> > (1) sizeof(Storage) >= sizeof(void*),
> Okay.
> > (2) an object of type Storage always has the correct alignment for every
> > type T such that sizeof(T) <= sizeof(Storage),
> Just for reference - how is this accomplished? Portably?

This is one of those things that can be accomplished portably for all
practical purposes and for which formal support is highly likely to be in
the next standard. Taking advantage of "non-portable" code to implement it
doesn't bother me.


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