Boost logo

Boost Users :

Subject: Re: [Boost-users] Boost.Thread and Boost.Function problems?
From: Agustín K-ballo Bergé (kaballo86_at_[hidden])
Date: 2010-03-04 22:22:49


El 05/03/2010 12:18 a.m., Agustín K-ballo Bergé escribió:
> El 04/03/2010 10:03 p.m., anony escribió:
>> I have this situation:
>> void spawner()
>> {
>> boost::thread(boost::function<void (std::string const&, std::string
>> const&>(my_thread), "bla", "lala");
>> }
>>

By the way, I think the use of boost::function is redundant. Doesn't it
just work like this:

boost::thread(my_thread, "bla", "lala");

Agustín K-ballo Bergé.-
http://talesofcpp.blogspot.com


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