|
Boost : |
Subject: Re: [boost] [smart-ptr][containers] type of the operator[] index
From: Olaf van der Spek (ml_at_[hidden])
Date: 2011-12-04 18:48:51
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.
Olaf
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk