3 Nov
2004
3 Nov
'04
3:28 p.m.
Recently, I download boost 1.31.0 and compile it with Visual studio.net 2003. But the code below can't work properly: class A { public: A() { printf("constructor.\n"); } ~A() { printf("destructor.\n"); } void operator () () { } }; int main(int argc, char* argv[]) { A a; boost::thread t(a); t.join(); } In my system, it generate the message like this: D:\thread\Debug>thread.exe constructor. destructor. destructor. destructor. destructor. destructor. destructor. Who can tell me what's wrong with boost or something else? -- Ride tricycle around the world.