
On Thu, 2008-05-22 at 17:04 -0500, Richard L. Aurbach wrote:
I was playing with the threads library in 1.35, and I noticed that I can't (with gcc 4.3 on Linux) put boost::thread objects into an STL container. I think I was trying with a std::vector, in case that matters.
Wouldn't another option be to create a vector of shared_ptr's of boost::thread objects?? The shared_ptr's work in vectors just fine, plus they provide a convenient way to pass around a non-copyable object like a thread, as well as other thread-pool functions.
Yes. That is what I ended up doing, but I just wanted to ask the question as to whether it was supposed to work, since I had read some things suggesting that it is supposed to work in C++0x. But, I think it's just an issue of the STL containers being enough different in C++0x than they are now to not work like that. Thanks... - Chris