Boost logo

Boost Users :

From: Ovanes Markarian (om_boost_at_[hidden])
Date: 2007-11-13 10:02:57


And the function template ComputeRadiometries is the member of the Profile
class? Can you please write the second error?

On 11/13/07, Olivier Tournaire <olitour_at_[hidden]> wrote:
>
> Here is the method signature :
>
> // in profile.hpp
> template <class T> void ComputeRadiometries( boost::shared_ptr< TTImage
> <T> > image , const eInterpolatorType type_interpolator=BICUBIC )
> {
> // ...
> }
>
> Here is how I create the threads
>
> // ...
> boost::shared_ptr<Profile> p2 ( new
> Profile(origine+(double)i*width_sur_nb_fois_wdir,rect->GetHeightDirection(),MPPParameters_.ProfilesNbPoints_,MPPParameters_.ProfilesDistancePoints_
> ) );
> boost::thread t(
> boost::bind
> (
> &Profile::template ComputeRadiometries<unsigned char>
> , p2
> , image_
> , BICUBIC
> )
> );
>
> 2007/11/13, Ovanes Markarian < om_boost_at_[hidden]>:
> >
> > Can you please post here som example how you function signature looks
> > like, and how you create a new thread?
> >
> > Regards,
> > Ovanes
> >
> > On 11/13/07, Olivier Tournaire <olitour_at_[hidden]> wrote:
> >
> > > Geat, seems simpler. However, it does not compile for me (boost 1.33.1).
> > > Aot of error, but the first one seems to be the more interesting :
> > >
> > > error C2780:
> > > 'boost::_bi::bind_t<R,boost::_mfi::dm<R,T>,_bi::list_av_1<A1>::type>
> > > boost::bind(R T::* ,A1)' : 2 arguments attendus - 4 fournis
> > >
> > > (translation attempt : [...] 2 args waited, 4 given)
> > >
> > >



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net