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