Boost logo

Boost Users :

From: Marco De Paoli (depaolim_at_[hidden])
Date: 2006-11-24 03:14:02


try this

class Parent
> {
> string p;
> public:
> Parent(string x):p(x){}
> void operator()(){
> cout << p << "thread called." << endl;
> Child c1("I am child 1");
> boost::thread c1t(c1);
>

c1t.join ();

  }
> };
>

Cheers,
Marco



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