Boost logo

Boost :

From: David Abrahams (dave_at_[hidden])
Date: 2007-08-29 09:30:00

on Tue Aug 28 2007, "Niels Dekker - mail address until 2008-12-31" <> wrote:

> Fernando Cacciola and I developed a new version of value_init.hpp,
> offering a workaround. The file is attached to the ticket:
> The workaround version stores the bytes of the T object that is wrapped
> by value_initialized<T> as an instance of aligned_storage::type. During
> the construction of value_initialized<T>, it clears the bytes of T
> (using memset), just before constructing T itself, by placement new:
> std::memset(&x, 0, sizeof(x)); new (&x) T();
> The workaround is enabled by defining a macro,
> As I never contributed to a Boost library before, what should I do in
> order to get this workaround reviewed, and hopefully get it into the
> library?

Thanks for your work on this! I think Fernando is entirely qualified
to review it, and he has commit privileges on the repository, so I've
reassigned the ticket to him.

Dave Abrahams
Boost Consulting
The Astoria Seminar ==>

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