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 19:24:30


Le 05/12/11 00:48, Olaf van der Spek a écrit :
> On Sun, Dec 4, 2011 at 11:40 PM, Vicente J. Botet Escriba
> <vicente.botet_at_[hidden]> wrote:
>>> typedef std::vector<registered_waiter>::size_type count_type;
>>> count_type count;
>>> boost::scoped_array<boost::unique_lock<boost::mutex> > locks;
>>> std::vector<registered_waiter> futures;
>>>
>>> // ...
>>> 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.
> Is this still an issue with 1.48?
> Can't reproduce.
>
No body said that the error has been corrected or disappeared before.
Could you try to reproduce it with version 1.45 so that we are sure the
error is no more present?
I don't know which compiler version was used :(

Best,
Vicente


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