Boost logo

Boost-Commit :

From: joseph.gauterin_at_[hidden]
Date: 2007-10-03 07:55:06


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

Log:
More clarifications regarding template specializations.
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:55:06 EDT (Wed, 03 Oct 2007)
@@ -24,7 +24,7 @@
     <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.
+ The alternative to using argument dependent lookup in this situation is to provide a template specialization of 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>
     
     <!-- Requirements -->


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