Boost logo

Boost-Commit :

From: nielsdekker_at_[hidden]
Date: 2008-04-27 17:07:11


Author: niels_dekker
Date: 2008-04-27 17:07:10 EDT (Sun, 27 Apr 2008)
New Revision: 44825
URL: http://svn.boost.org/trac/boost/changeset/44825

Log:
Added forward declaration of optional<T>'s boost::swap overload, as mentioned at http://article.gmane.org/gmane.comp.lib.boost.devel/174350 "Re: [optional] problems with swap()"
Text files modified:
   trunk/boost/optional/optional_fwd.hpp | 7 ++++++-
   1 files changed, 6 insertions(+), 1 deletions(-)

Modified: trunk/boost/optional/optional_fwd.hpp
==============================================================================
--- trunk/boost/optional/optional_fwd.hpp (original)
+++ trunk/boost/optional/optional_fwd.hpp 2008-04-27 17:07:10 EDT (Sun, 27 Apr 2008)
@@ -1,4 +1,4 @@
-// Copyright (C) 2003, Fernando Luis Cacciola Carballal.
+// Copyright (C) 2003, 2008 Fernando Luis Cacciola Carballal.
 //
 // Use, modification, and distribution is subject to the Boost Software
 // License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
@@ -9,6 +9,9 @@
 // You are welcome to contact the author at:
 // fernando_cacciola_at_[hidden]
 //
+// Revisions:
+// 27 Apr 2008 (added forward declaration of boost::swap overload) Niels Dekker
+//
 #ifndef BOOST_OPTIONAL_OPTIONAL_FWD_FLC_19NOV2002_HPP
 #define BOOST_OPTIONAL_OPTIONAL_FWD_FLC_19NOV2002_HPP
 
@@ -16,6 +19,8 @@
 
 template<class T> class optional ;
 
+template<class T> void swap ( optional<T>& , optional<T>& ) ;
+
 } // namespace boost
 
 #endif


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