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 17:37:33


Le 04/12/11 19:25, Peter Dimov a écrit :
> Vicente J. Botet Escriba wrote:
>> So which will be the type used to to move from a scoped_array to
>> another container?
>
> I have no idea what you mean, sorry.
>
>
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 concerned code is

             typedef std::vector<registered_waiter>::size_type count_type;
             count_type count;
             // ...
             for(count_type i=0;i<count;++i)
             {
               
locks[i]=boost::unique_lock<boost::mutex>(futures[i].future->mutex);
             }

The question is how count_type must be defined so that we don't have
portable issues.

Best,
Vicente


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