|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r50216 - sandbox/committee/rvalue_ref
From: dgregor_at_[hidden]
Date: 2008-12-08 20:04:43
Author: dgregor
Date: 2008-12-08 20:04:42 EST (Mon, 08 Dec 2008)
New Revision: 50216
URL: http://svn.boost.org/trac/boost/changeset/50216
Log:
Fix stupidity
Text files modified:
sandbox/committee/rvalue_ref/n2812_08-0322_soundness.rst | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Modified: sandbox/committee/rvalue_ref/n2812_08-0322_soundness.rst
==============================================================================
--- sandbox/committee/rvalue_ref/n2812_08-0322_soundness.rst (original)
+++ sandbox/committee/rvalue_ref/n2812_08-0322_soundness.rst 2008-12-08 20:04:42 EST (Mon, 08 Dec 2008)
@@ -273,8 +273,8 @@
queue<string, list<string>> dest;
queue<string, list<string>> src;
- enqueue(dest, src); // okay, calls #3b to copy from src into dest
- enqueue(dest, queue<string, list<string>>()); // okay, calls #4 to move from src to dest
+ enqueue(dest, src); // error: cannot bind rvalue reference in #4 to lvalue 'src'
+ enqueue(dest, queue<string, list<string>>()); // okay, calls #4 to move from temporary to dest
We can then add back the previously-problematic overload that allows
one to copy from the source queue while enqueing its elements, and
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