Boost logo

Boost :

Subject: Re: [boost] [smart-ptr][containers] type of the operator[] index
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2011-12-04 18:58:51

Le 05/12/11 00:48, Peter Dimov a écrit :
> Vicente J. Botet Escriba wrote:
>> No problem. I'm analyzing this ticket
>> 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?


Boost list run by bdawes at, gregod at, cpdaniel at, john at