void Dispatcher::implementation (Dispatcher_Impl* impl) { auto_ptr<Dispatcher_Impl> tmp_impl (impl); dispatcher_impl_ = tmp_impl; //I couldn't use reset because MSVC++ auto_ptr does not have reset method. //So in configurations where the auto_ptr maps to the std::auto_ptr instead //of ACE auto_ptr, this would be a problem. //dispatcher_impl_.reset (impl); }
void DSRT_Dispatcher<DSRT_Scheduler_Traits>::implementation (DSRT_Dispatcher_Impl<DSRT_Scheduler_Traits>* impl) { auto_ptr<DSRT_Dispatcher_Impl<DSRT_Scheduler_Traits> > tmp_impl (impl); dispatcher_impl_ = tmp_impl; }