2
0
mirror of https://github.com/boostorg/thread.git synced 2026-02-01 09:02:08 +00:00

executor_adaptor<serial_executor> a(b) doesn't compiles on C++03.

This commit is contained in:
Vicente J. Botet Escriba
2014-01-12 18:28:24 +01:00
parent 47be5228b1
commit 6ab71dc057
3 changed files with 26 additions and 22 deletions

View File

@@ -87,12 +87,14 @@ int main()
submit_some( ea2);
ea2.underlying_executor().run_queued_closures();
}
#if ! defined(BOOST_NO_CXX11_RVALUE_REFERENCES)
std::cout << BOOST_CONTEXTOF << std::endl;
{
boost::executor_adaptor < boost::basic_thread_pool > ea1(4);
boost::executor_adaptor < boost::serial_executor > ea2(ea1);
submit_some(ea2);
}
#endif
std::cout << BOOST_CONTEXTOF << std::endl;
}
catch (std::exception& ex)