From 74674531c880f34773ecfc9c89e7198b84e6fd72 Mon Sep 17 00:00:00 2001 From: Niels Dekker Date: Sun, 27 Apr 2008 21:09:50 +0000 Subject: [PATCH] Replaced "using std::swap" by "using boost::swap" within optional::swap member function, hoping to fix GCC test failures, as mentioned at http://article.gmane.org/gmane.comp.lib.boost.devel/174350 "Re: [optional] problems with swap()" [SVN r44826] --- include/boost/optional/optional.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/optional/optional.hpp b/include/boost/optional/optional.hpp index f23df09..01db469 100644 --- a/include/boost/optional/optional.hpp +++ b/include/boost/optional/optional.hpp @@ -10,7 +10,7 @@ // fernando_cacciola@hotmail.com // // Revisions: -// 25 Apr 2008 (improved swap) Fernando Cacciola, Niels Dekker, Thorsten Ottosen +// 27 Apr 2008 (improved swap) Fernando Cacciola, Niels Dekker, Thorsten Ottosen // #ifndef BOOST_OPTIONAL_OPTIONAL_FLC_19NOV2002_HPP #define BOOST_OPTIONAL_OPTIONAL_FLC_19NOV2002_HPP @@ -579,7 +579,7 @@ class optional : public optional_detail::optional_base void swap( optional & arg ) { // allow for Koenig lookup - using std::swap ; + using boost::swap ; swap(*this, arg); }