Boost logo

Boost-Commit :

From: joseph.gauterin_at_[hidden]
Date: 2007-10-03 07:53:24


Author: joseph.gauterin
Date: 2007-10-03 07:53:24 EDT (Wed, 03 Oct 2007)
New Revision: 39671
URL: http://svn.boost.org/trac/boost/changeset/39671

Log:
Correct 'weak exception guarantee' to 'basic exception guarantee'
Text files modified:
   sandbox/swap/libs/utility/swap.html | 2 +-
   1 files changed, 1 insertions(+), 1 deletions(-)

Modified: sandbox/swap/libs/utility/swap.html
==============================================================================
--- sandbox/swap/libs/utility/swap.html (original)
+++ sandbox/swap/libs/utility/swap.html 2007-10-03 07:53:24 EDT (Wed, 03 Oct 2007)
@@ -22,7 +22,7 @@
     <!-- Rationale -->
     <h2>Rationale</h2>
     <p>
- The generic <tt>std::swap</tt> function requires that the elements to be swapped are assignable and copy constructable. It is ususally implemented using one copy constuction and two assignments. This is often both unneccessarily restrictive and unneccessarily slow. In addition, specialized swap functions are often able to provide the no-throw exception guarentee where the generic swap implementation provides only the weak guarantee.</p>
+ The generic <tt>std::swap</tt> function requires that the elements to be swapped are assignable and copy constructable. It is ususally implemented using one copy constuction and two assignments. This is often both unneccessarily restrictive and unneccessarily slow. In addition, specialized swap functions are often able to provide the no-throw exception guarentee where the generic swap implementation provides only the basic guarantee.</p>
     <p>
       The alternative to using argument dependent lookup in this situation is to specialize std::swap for every type that requires a specialized swap. Although this is legal C++, no boost libraries use this method, whereas many boost libraries provide specialized swap functions in their own namespaces.
     </p>


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk