Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2005-04-24 10:30:55


"Peter Dimov" <pdimov_at_[hidden]> writes:

> Use aligned_storage<> and placement new.

I think boost::optional<> should also work for this job, but the area
of the interface that seems like it ought to handle the problem seems
to be poorly documented so I can't be sure it does.

-- 
Dave Abrahams
Boost Consulting
www.boost-consulting.com

Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk