Hi all,

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 ) :

shared_ptr< Profile > p2 ( new Profile(origine+(double)i*width_sur_nb_fois_wdir,rect->GetHeightDirection(),MPPParameters_.ProfilesNbPoints_,MPPParameters_.ProfilesDistancePoints_ ) );
shared_ptr< Profile > p3 (new Profile(origine+(double)(-i)*width_sur_nb_fois_wdir,rect->GetHeightDirection(),MPPParameters_.ProfilesNbPoints_,MPPParameters_.ProfilesDistancePoints_ ) );
rect_profiles.push_back( p2 );
rect_profiles.push_back( p3 );

Regards

--
Le temps des cerises reviendra. Dans l'immédiat, c'est le temps des noyaux. Courage.