Boost logo

Boost Users :

Subject: [Boost-users] Compiling version 1.41 with /clr
From: Dominique Aigroz (dominique_at_[hidden])
Date: 2009-12-28 08:39:23

Dear all,

I've upgraded from 1.39 to 1.41 and now I've got an error when

error C2711:
'boost::detail::future_waiter::all_futures_lock::all_futures_lock' :
this functon cannot be compiled as managed, consider using #pragma
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
(416) : error C3821:
(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.


Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at