Hi all,<br><br>I would like to know if there is a way to write the same piece of code using threads (one for each shared_ptr creation ) :<br><br>shared_ptr&lt; Profile &gt; p2 ( new Profile(origine+(double)i*width_sur_nb_fois_wdir,rect-&gt;GetHeightDirection(),MPPParameters_.ProfilesNbPoints_,MPPParameters_.ProfilesDistancePoints_ ) );
<br>shared_ptr&lt; Profile &gt; p3 (new Profile(origine+(double)(-i)*width_sur_nb_fois_wdir,rect-&gt;GetHeightDirection(),MPPParameters_.ProfilesNbPoints_,MPPParameters_.ProfilesDistancePoints_ ) );<br>rect_profiles.push_back( p2 );
<br>rect_profiles.push_back( p3 );<br><br>Regards<br clear="all"><br>-- <br>Le temps des cerises reviendra. Dans l&#39;imm�diat, c&#39;est le temps des noyaux. Courage.