diff --git a/include/boost/thread/future.hpp b/include/boost/thread/future.hpp index 8b131599..2e0f5f2d 100644 --- a/include/boost/thread/future.hpp +++ b/include/boost/thread/future.hpp @@ -201,12 +201,8 @@ namespace boost struct shared_state_base : enable_shared_from_this { typedef std::list waiter_list; -#if defined BOOST_THREAD_PROVIDES_FUTURE_CONTINUATION + // This type should be only included conditionally if interruptions are allowed, but is included to maintain the same layout. typedef shared_ptr continuation_ptr_type; -#else - // This type shouldn't be included, but is included to maintain the same layout. - typedef shared_ptr continuation_ptr_type; -#endif boost::exception_ptr exception; bool done; @@ -217,7 +213,7 @@ namespace boost boost::condition_variable waiters; waiter_list external_waiters; boost::function callback; - // This declaration should be only included conditionally, but is included to maintain the same layout. + // This declaration should be only included conditionally if interruptions are allowed, but is included to maintain the same layout. bool thread_was_interrupted; // This declaration should be only included conditionally, but is included to maintain the same layout. continuation_ptr_type continuation_ptr;