Boost logo

Boost Users :

From: Christian Henning (chhenning_at_[hidden])
Date: 2006-07-17 17:30:27


Please use a smart pointer.

in class declaration:

  typedef boost::scoped_ptr<boost::thread> tThread_Ptr;
  tThread_Ptr _spThread;

in class constructor or wherever:

       _spThread.reset( new boost::thread( boost::bind( _run
                                                 , this )));

Regards,
Christian


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