From 0d4ccf5556cf0f92be251db1943f33986937fcd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ion=20Gazta=C3=B1aga?= Date: Fri, 23 Dec 2011 12:10:03 +0000 Subject: [PATCH] Bug #6183 [SVN r76115] --- doc/move.qbk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/move.qbk b/doc/move.qbk index 5cc8a99..c8a0e23 100644 --- a/doc/move.qbk +++ b/doc/move.qbk @@ -49,7 +49,7 @@ proceed to overwrite the old copy. Consider: [c++] - template swap(T& a, T& b) + template void swap(T& a, T& b) { T tmp(a); // now we have two copies of a a = b; // now we have two copies of b @@ -60,7 +60,7 @@ But, we didn't want to have any copies of a or b, we just wanted to swap them. L [c++] - template swap(T& a, T& b) + template void swap(T& a, T& b) { T tmp(::boost::move(a)); a = ::boost::move(b);