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< Profile > p2 ( new Profile(origine+(double)i*width_sur_nb_fois_wdir,rect->GetHeightDirection(),MPPParameters_.ProfilesNbPoints_,MPPParameters_.ProfilesDistancePoints_ ) ); <br>shared_ptr< Profile > p3 (new Profile(origine+(double)(-i)*width_sur_nb_fois_wdir,rect->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'imm�diat, c'est le temps des noyaux. Courage.