Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r81631 - trunk/boost/coroutine
From: oliver.kowalke_at_[hidden]
Date: 2012-11-30 02:52:03


Author: olli
Date: 2012-11-30 02:52:01 EST (Fri, 30 Nov 2012)
New Revision: 81631
URL: http://svn.boost.org/trac/boost/changeset/81631

Log:
coroutine: corrected BOOST_STATIC_ASSERT

Text files modified:
   trunk/boost/coroutine/coroutine.hpp | 66 ++++++++++++++++++++++++++-------------
   1 files changed, 44 insertions(+), 22 deletions(-)

Modified: trunk/boost/coroutine/coroutine.hpp
==============================================================================
--- trunk/boost/coroutine/coroutine.hpp (original)
+++ trunk/boost/coroutine/coroutine.hpp 2012-11-30 02:52:01 EST (Fri, 30 Nov 2012)
@@ -286,7 +286,8 @@
         impl_()
     {
 // BOOST_STATIC_ASSERT((
-// is_same< void, typename result_of< Fn() >::type >::value));
+// is_same< typename result_of< Fn( caller_type &) >::type, void >::value
+// ));
         typedef detail::coroutine_object<
                 Signature,
                 Fn, stack_allocator, std::allocator< coroutine >,
@@ -323,7 +324,8 @@
         impl_()
     {
 // BOOST_STATIC_ASSERT((
-// is_same< void, typename result_of< Fn() >::type >::value));
+// is_same< typename result_of< Fn( caller_type &) >::type, void >::value
+// ));
         typedef detail::coroutine_object<
                 Signature,
                 Fn, StackAllocator, std::allocator< coroutine >,
@@ -359,7 +361,8 @@
         impl_()
     {
 // BOOST_STATIC_ASSERT((
-// is_same< void, typename result_of< Fn() >::type >::value));
+// is_same< typename result_of< Fn( caller_type &) >::type, void >::value
+// ));
         typedef detail::coroutine_object<
                 Signature,
                 Fn, StackAllocator, Allocator,
@@ -397,7 +400,8 @@
         impl_()
     {
 // BOOST_STATIC_ASSERT((
-// is_same< void, typename result_of< Fn() >::type >::value));
+// is_same< typename result_of< Fn( caller_type &) >::type, void >::value
+// ));
         typedef detail::coroutine_object<
                 Signature,
                 Fn, stack_allocator, std::allocator< coroutine >,
@@ -434,7 +438,8 @@
         impl_()
     {
 // BOOST_STATIC_ASSERT((
-// is_same< void, typename result_of< Fn() >::type >::value));
+// is_same< typename result_of< Fn( caller_type &) >::type, void >::value
+// ));
         typedef detail::coroutine_object<
                 Signature,
                 Fn, StackAllocator, std::allocator< coroutine >,
@@ -470,7 +475,8 @@
         impl_()
     {
 // BOOST_STATIC_ASSERT((
-// is_same< void, typename result_of< Fn() >::type >::value));
+// is_same< typename result_of< Fn( caller_type &) >::type, void >::value
+// ));
         typedef detail::coroutine_object<
                 Signature,
                 Fn, StackAllocator, Allocator,
@@ -508,7 +514,8 @@
         impl_()
     {
 // BOOST_STATIC_ASSERT((
-// is_same< void, typename result_of< Fn() >::type >::value));
+// is_same< typename result_of< Fn( caller_type &) >::type, void >::value
+// ));
         typedef detail::coroutine_object<
                 Signature,
                 Fn, stack_allocator, std::allocator< coroutine >,
@@ -545,7 +552,8 @@
         impl_()
     {
 // BOOST_STATIC_ASSERT((
-// is_same< void, typename result_of< Fn() >::type >::value));
+// is_same< typename result_of< Fn( caller_type &) >::type, void >::value
+// ));
         typedef detail::coroutine_object<
                 Signature,
                 Fn, StackAllocator, std::allocator< coroutine >,
@@ -581,7 +589,8 @@
         impl_()
     {
 // BOOST_STATIC_ASSERT((
-// is_same< void, typename result_of< Fn() >::type >::value));
+// is_same< typename result_of< Fn( caller_type &) >::type, void >::value
+// ));
         typedef detail::coroutine_object<
                 Signature,
                 Fn, StackAllocator, Allocator,
@@ -864,7 +873,8 @@
         impl_()
     {
 // BOOST_STATIC_ASSERT((
-// is_same< void, typename result_of< Fn() >::type >::value));
+// is_same< typename result_of< Fn( caller_type &) >::type, void >::value
+// ));
         typedef detail::coroutine_object<
                 Signature,
                 Fn, stack_allocator, std::allocator< coroutine >,
@@ -902,7 +912,8 @@
         impl_()
     {
 // BOOST_STATIC_ASSERT((
-// is_same< void, typename result_of< Fn() >::type >::value));
+// is_same< typename result_of< Fn( caller_type &) >::type, void >::value
+// ));
         typedef detail::coroutine_object<
                 Signature,
                 Fn, stack_allocator, std::allocator< coroutine >,
@@ -939,7 +950,8 @@
         impl_()
     {
 // BOOST_STATIC_ASSERT((
-// is_same< void, typename result_of< Fn() >::type >::value));
+// is_same< typename result_of< Fn( caller_type &) >::type, void >::value
+// ));
         typedef detail::coroutine_object<
                 Signature,
                 Fn, StackAllocator, std::allocator< coroutine >,
@@ -976,7 +988,8 @@
         impl_()
     {
 // BOOST_STATIC_ASSERT((
-// is_same< void, typename result_of< Fn() >::type >::value));
+// is_same< typename result_of< Fn( caller_type &) >::type, void >::value
+// ));
         typedef detail::coroutine_object<
                 Signature,
                 Fn, StackAllocator, std::allocator< coroutine >,
@@ -1012,7 +1025,8 @@
         impl_()
     {
 // BOOST_STATIC_ASSERT((
-// is_same< void, typename result_of< Fn() >::type >::value));
+// is_same< typename result_of< Fn( caller_type &) >::type, void >::value
+// ));
         typedef detail::coroutine_object<
                 Signature,
                 Fn, StackAllocator, Allocator,
@@ -1048,7 +1062,8 @@
         impl_()
     {
 // BOOST_STATIC_ASSERT((
-// is_same< void, typename result_of< Fn() >::type >::value));
+// is_same< typename result_of< Fn( caller_type &) >::type, void >::value
+// ));
         typedef detail::coroutine_object<
                 Signature,
                 Fn, StackAllocator, Allocator,
@@ -1086,7 +1101,8 @@
         impl_()
     {
 // BOOST_STATIC_ASSERT((
-// is_same< void, typename result_of< Fn() >::type >::value));
+// is_same< typename result_of< Fn( caller_type &) >::type, void >::value
+// ));
         typedef detail::coroutine_object<
                 Signature,
                 Fn, stack_allocator, std::allocator< coroutine >,
@@ -1124,7 +1140,8 @@
         impl_()
     {
 // BOOST_STATIC_ASSERT((
-// is_same< void, typename result_of< Fn() >::type >::value));
+// is_same< typename result_of< Fn( caller_type &) >::type, void >::value
+// ));
         typedef detail::coroutine_object<
                 Signature,
                 Fn, stack_allocator, std::allocator< coroutine >,
@@ -1161,7 +1178,8 @@
         impl_()
     {
 // BOOST_STATIC_ASSERT((
-// is_same< void, typename result_of< Fn() >::type >::value));
+// is_same< typename result_of< Fn( caller_type &) >::type, void >::value
+// ));
         typedef detail::coroutine_object<
                 Signature,
                 Fn, StackAllocator, std::allocator< coroutine >,
@@ -1197,7 +1215,8 @@
         impl_()
     {
 // BOOST_STATIC_ASSERT((
-// is_same< void, typename result_of< Fn() >::type >::value));
+// is_same< typename result_of< Fn( caller_type &) >::type, void >::value
+// ));
         typedef detail::coroutine_object<
                 Signature,
                 Fn, StackAllocator, Allocator,
@@ -1235,7 +1254,8 @@
         impl_()
     {
 // BOOST_STATIC_ASSERT((
-// is_same< void, typename result_of< Fn() >::type >::value));
+// is_same< typename result_of< Fn( caller_type &) >::type, void >::value
+// ));
         typedef detail::coroutine_object<
                 Signature,
                 Fn, stack_allocator, std::allocator< coroutine >,
@@ -1272,7 +1292,8 @@
         impl_()
     {
 // BOOST_STATIC_ASSERT((
-// is_same< void, typename result_of< Fn() >::type >::value));
+// is_same< typename result_of< Fn( caller_type &) >::type, void >::value
+// ));
         typedef detail::coroutine_object<
                 Signature,
                 Fn, StackAllocator, std::allocator< coroutine >,
@@ -1308,7 +1329,8 @@
         impl_()
     {
 // BOOST_STATIC_ASSERT((
-// is_same< void, typename result_of< Fn() >::type >::value));
+// is_same< typename result_of< Fn( caller_type &) >::type, void >::value
+// ));
         typedef detail::coroutine_object<
                 Signature,
                 Fn, StackAllocator, Allocator,


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