
2009/12/28 Dominique Aigroz
Dear all,
I've upgraded from 1.39 to 1.41 and now I've got an error when compiling.
error C2711: 'boost::detail::future_waiter::all_futures_lock::all_futures_lock' : this functon cannot be compiled as managed, consider using #pragma unmanaged 1> #pragma unmanaged is in effect 1> C:\Kadeo\Dev9\Thirdparty\boost_1_41_0\boost/thread/future.hpp(411) : see source of the previous compiler diagnostic 1>C:\Kadeo\Dev9\Thirdparty\boost_1_41_0\boost/thread/future.hpp(416) : error C3821: 'boost::detail::future_waiter::all_futures_lock::all_futures_lock(std::vector<_Ty> &)': managed type or function cannot be used in an unmanaged function 1> with 1> [ 1> _Ty=boost::detail::future_waiter::registered_waiter 1> ]
My dll is compiled with /clr flag, but i put #pragma unmanaged before include the boost header files.
Does anyone have a solution for that problem.
Regards, Dominique
Hi, The solution is to not compile with /clr or with the pragma. Matthieu -- Information System Engineer, Ph.D. Blog: http://matt.eifelle.com LinkedIn: http://www.linkedin.com/in/matthieubrucher