Index: future.hpp =================================================================== --- future.hpp (revision 75884) +++ future.hpp (working copy) @@ -413,13 +413,19 @@ struct all_futures_lock { - count_type count; +#ifdef _MANAGED + typedef std::ptrdiff_t count_type_portable; +#else + typedef count_type count_type_portable; +#endif + count_type_portable count; + boost::scoped_array > locks; all_futures_lock(std::vector& futures): count(futures.size()),locks(new boost::unique_lock[count]) { - for(count_type i=0;i(futures[i].future->mutex).move(); @@ -436,7 +442,7 @@ void unlock() { - for(count_type i=0;i