|
Boost : |
From: Eric Friedman (ebf_at_[hidden])
Date: 2002-08-07 05:56:06
Dave,
See (in the sandbox):
boost/utility/safe_swap.hpp
boost/utility/safe_assign.hpp
Unless there is a major bug lurking here, I think your assertion is
incorrect. (And please correct me if I'm wrong because it's very
important for boost::variant!)
-Eric
-----Original Message-----
From: David Abrahams [mailto:dave_at_[hidden]]
Sent: Wednesday, August 07, 2002 12:05 AM
To: boost_at_[hidden]
Subject: Re: [boost] Mini-review request: aligned_storage.hpp
From: "Eric Friedman" <ebf_at_[hidden]>
>
> Additional features of my boost::aligned_storage include:
>
> * aligned_storage::swap_as<T> and aligned_storage::assign_as<T>
> provide strong exception-safety guarantee
If those things are supposed to have the "obvious" semantics, well, I'll
believe it when I see it.
If you don't know something extra about T it isn't in general possible
to produce a strong guarantee swap or assignment.
-Dave
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk