|
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
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
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net