
Le 05/12/11 00:48, Peter Dimov a écrit :
Vicente J. Botet Escriba wrote:
No problem. I'm analyzing this ticket https://svn.boost.org/trac/boost/ticket/5040 future.hpp in boost::thread does not compile with /clr
The problem here is that the "unspecified bool type" is not a member pointer under /clr because it doesn't work. I see that I used a function pointer to avoid this problem, but apparently, function pointers can be indexed with operator[] (even though it makes no sense to do so), which results in the ambiguity being reported.
This is technically a scoped_array issue, but I have no idea how to fix it, so the easiest approach is to make count_type ptrdiff_t under /clr (#ifdef _MANAGED).
Thanks for clarifications. I will use a specific code for _MANAGEG as you suggest). Do you want I transfer the ticket to SmartPointer? Vicente