Boost logo

Boost :

Subject: Re: [boost] [smart-ptr][containers] type of the operator[] index
From: Peter Dimov (pdimov_at_[hidden])
Date: 2011-12-04 18:48:23


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).


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk