
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 2014-03-11 19:55, Oliver Kowalke wrote:
using your example together with the code from branch develop does not produce the error.
Hi, I just tried building develop, but this failed: clang-linux.compile.c++.without-pth bin.v2/libs/coroutine/build/clang-linux-3.4/release/link-static/threading-multi/detail/coroutine_context.o libs/coroutine/src/detail/coroutine_context.cpp:38:5: error: no matching constructor for initialization of 'context::fcontext_t' ctx_( 0) ^ ~ ./boost/context/detail/fcontext_x86_64.hpp:47:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const boost::context::fcontext_t' for 1st argument struct fcontext_t ^ ./boost/context/detail/fcontext_x86_64.hpp:47:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'int' to 'boost::context::fcontext_t' for 1st argument struct fcontext_t ^ ./boost/context/detail/fcontext_x86_64.hpp:53:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided fcontext_t() : ^ libs/coroutine/src/detail/coroutine_context.cpp:47:5: error: no matching constructor for initialization of 'context::fcontext_t' ctx_( context::make_fcontext( stack_ctx_.sp, stack_ctx_.size, fn) ) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./boost/context/detail/fcontext_x86_64.hpp:47:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'boost::context::fcontext_t *' to 'const boost::context::fcontext_t' for 1st argument; dereference the argument with * struct fcontext_t ^ * ./boost/context/detail/fcontext_x86_64.hpp:47:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'boost::context::fcontext_t *' to 'boost::context::fcontext_t' for 1st argument; dereference the argument with * struct fcontext_t ^ * ./boost/context/detail/fcontext_x86_64.hpp:53:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided fcontext_t() : ^ libs/coroutine/src/detail/coroutine_context.cpp:79:44: error: no viable conversion from 'context::fcontext_t' to 'const boost::context::fcontext_t *' return context::jump_fcontext( & ctx_, other.ctx_, param, preserve_fpu); ^~~~~~~~~~ ./boost/context/fcontext.hpp:79:84: note: passing argument to parameter 'nfc' here intptr_t BOOST_CONTEXT_CALLDECL jump_fcontext( fcontext_t * ofc, fcontext_t const* nfc, intptr_t vp, bool preserve_fpu = true); ^ 3 errors generated. "clang++" -c -x c++ -O3 -finline-functions -Wno-inline -Wall - -pthread -DBOOST_ALL_NO_LIB=1 -DBOOST_CHRONO_STATIC_LINK=1 - -DBOOST_COROUTINES_SOURCE -DBOOST_SYSTEM_NO_DEPRECATED - -DBOOST_SYSTEM_STATIC_LINK=1 -DBOOST_THREAD_BUILD_LIB=1 - -DBOOST_THREAD_POSIX -DBOOST_THREAD_USE_LIB=1 -DNDEBUG -I"." -o "bin.v2/libs/coroutine/build/clang-linux-3.4/release/link-static/threading-multi/detail/coroutine_context.o" "libs/coroutine/src/detail/coroutine_context.cpp" ...failed clang-linux.compile.c++.without-pth bin.v2/libs/coroutine/build/clang-linux-3.4/release/link-static/threading-multi/detail/coroutine_context.o... ...skipped <pbin.v2/libs/coroutine/build/clang-linux-3.4/release/link-static/threading-multi>libboost_coroutine.a(clean) for lack of <pbin.v2/libs/coroutine/build/clang-linux-3.4/release/link-static/threading-multi>detail/coroutine_context.o... ...skipped <pbin.v2/libs/coroutine/build/clang-linux-3.4/release/link-static/threading-multi>libboost_coroutine.a for lack of <pbin.v2/libs/coroutine/build/clang-linux-3.4/release/link-static/threading-multi>detail/coroutine_context.o... ...skipped <pstage/lib>libboost_coroutine.a for lack of <pbin.v2/libs/coroutine/build/clang-linux-3.4/release/link-static/threading-multi>libboost_coroutine.a... clang-linux.compile.c++.without-pth bin.v2/libs/coroutine/build/clang-linux-3.4/release/threading-multi/detail/coroutine_context.o libs/coroutine/src/detail/coroutine_context.cpp:38:5: error: no matching constructor for initialization of 'context::fcontext_t' ctx_( 0) ^ ~ ./boost/context/detail/fcontext_x86_64.hpp:47:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'int' to 'const boost::context::fcontext_t' for 1st argument struct fcontext_t ^ ./boost/context/detail/fcontext_x86_64.hpp:47:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'int' to 'boost::context::fcontext_t' for 1st argument struct fcontext_t ^ ./boost/context/detail/fcontext_x86_64.hpp:53:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided fcontext_t() : ^ libs/coroutine/src/detail/coroutine_context.cpp:47:5: error: no matching constructor for initialization of 'context::fcontext_t' ctx_( context::make_fcontext( stack_ctx_.sp, stack_ctx_.size, fn) ) ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ./boost/context/detail/fcontext_x86_64.hpp:47:8: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'boost::context::fcontext_t *' to 'const boost::context::fcontext_t' for 1st argument; dereference the argument with * struct fcontext_t ^ * ./boost/context/detail/fcontext_x86_64.hpp:47:8: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'boost::context::fcontext_t *' to 'boost::context::fcontext_t' for 1st argument; dereference the argument with * struct fcontext_t ^ * ./boost/context/detail/fcontext_x86_64.hpp:53:5: note: candidate constructor not viable: requires 0 arguments, but 1 was provided fcontext_t() : ^ libs/coroutine/src/detail/coroutine_context.cpp:79:44: error: no viable conversion from 'context::fcontext_t' to 'const boost::context::fcontext_t *' return context::jump_fcontext( & ctx_, other.ctx_, param, preserve_fpu); ^~~~~~~~~~ ./boost/context/fcontext.hpp:79:84: note: passing argument to parameter 'nfc' here intptr_t BOOST_CONTEXT_CALLDECL jump_fcontext( fcontext_t * ofc, fcontext_t const* nfc, intptr_t vp, bool preserve_fpu = true); ^ 3 errors generated. "clang++" -c -x c++ -O3 -finline-functions -Wno-inline -Wall - -pthread -fPIC -DBOOST_ALL_NO_LIB=1 -DBOOST_CHRONO_DYN_LINK=1 - -DBOOST_CONTEXT_DYN_LINK=1 -DBOOST_COROUTINES_DYN_LINK=1 - -DBOOST_COROUTINES_SOURCE -DBOOST_SYSTEM_DYN_LINK=1 - -DBOOST_SYSTEM_NO_DEPRECATED -DBOOST_THREAD_BUILD_DLL=1 - -DBOOST_THREAD_POSIX -DBOOST_THREAD_USE_DLL=1 -DNDEBUG -I"." -o "bin.v2/libs/coroutine/build/clang-linux-3.4/release/threading-multi/detail/coroutine_context.o" "libs/coroutine/src/detail/coroutine_context.cpp" ...failed clang-linux.compile.c++.without-pth bin.v2/libs/coroutine/build/clang-linux-3.4/release/threading-multi/detail/coroutine_context.o... ...skipped <pbin.v2/libs/coroutine/build/clang-linux-3.4/release/threading-multi>libboost_coroutine.so.1.56.0 for lack of <pbin.v2/libs/coroutine/build/clang-linux-3.4/release/threading-multi>detail/coroutine_context.o... ...skipped <pstage/lib>libboost_coroutine.so.1.56.0 for lack of <pbin.v2/libs/coroutine/build/clang-linux-3.4/release/threading-multi>libboost_coroutine.so.1.56.0... ...skipped <pstage/lib>libboost_coroutine.so for lack of <pstage/lib>libboost_coroutine.so.1.56.0... ...failed updating 2 targets... ...skipped 6 targets... Will try again later... /Brian -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBAgAGBQJTIPqAAAoJEFES4N8QrEods3sH/0Bh1JhB0ilVEf3DHST0LmEf 9dmP6zYJoTxFxQVYZfvBykelUa8XUE0S8b69BdPaxw3VhRJZB4hLq3/Nq/yYpI5Y 2hWyRMyG6ZP1gXhjMEKv2HUmcyhFPUxcLg2IVhCeW9UOo6AB7tZZhlJxB67aGy+V Mzao9wt7+19vM5obVq2IzJ35xqlk/6CyH6vvuNLJWkWIF09Oqufwi6i1BM8TIdvJ VAFe0vUOaKDj9mJIRae7gwCWbnA9SdOcFqIUG5RP5KFf1vAYnLd1U+bIuynEL6bm /QvDT/ZQ0TR8PkHDCquNi0TN760hs06SsYxk30tNgCBQM87IKQQLdbWM16VUeoQ= =LWA6 -----END PGP SIGNATURE-----