|
Boost-Commit : |
From: daniel_james_at_[hidden]
Date: 2008-07-13 15:18:03
Author: danieljames
Date: 2008-07-13 15:18:03 EDT (Sun, 13 Jul 2008)
New Revision: 47393
URL: http://svn.boost.org/trac/boost/changeset/47393
Log:
Make a note of why some tests fail.
Text files modified:
sandbox/move/libs/move/test/noncopyable.cpp | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
Modified: sandbox/move/libs/move/test/noncopyable.cpp
==============================================================================
--- sandbox/move/libs/move/test/noncopyable.cpp (original)
+++ sandbox/move/libs/move/test/noncopyable.cpp 2008-07-13 15:18:03 EDT (Sun, 13 Jul 2008)
@@ -88,8 +88,13 @@
Y::expect_move();
sink(csource());
- // TODO: Why do these fail?
-
+ // http://lists.boost.org/Archives/boost/2008/06/138884.php
+ //
+ // If David Abrahams recalls correctly, when binding a reference to an rvalue,
+ // that rvalue must be copyable (and may in fact be copied at the discretion of
+ // the compiler). So these two tests only compiler for copyable types.
+ //
+ // TODO: Look this up properly.
//SAY(" ------ test 10, pass rvalue by overloaded reference ------- ");
//Y::expect_move();
//sink2(source());
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