|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r80763 - trunk/libs/thread/example
From: vicente.botet_at_[hidden]
Date: 2012-09-29 16:54:24
Author: viboes
Date: 2012-09-29 16:54:24 EDT (Sat, 29 Sep 2012)
New Revision: 80763
URL: http://svn.boost.org/trac/boost/changeset/80763
Log:
Thread: constrain make_future example to run when rvalues references are supported.
Text files modified:
trunk/libs/thread/example/make_future.cpp | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
Modified: trunk/libs/thread/example/make_future.cpp
==============================================================================
--- trunk/libs/thread/example/make_future.cpp (original)
+++ trunk/libs/thread/example/make_future.cpp 2012-09-29 16:54:24 EDT (Sat, 29 Sep 2012)
@@ -7,6 +7,7 @@
#include <boost/thread/future.hpp>
#include <iostream>
+#ifndef BOOST_NO_CXX11_RVALUE_REFERENCES
int p1() { return 5; }
@@ -40,3 +41,10 @@
}
return 0;
}
+#else
+
+int main()
+{
+ return 0;
+}
+#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