Boost logo

Boost Users :

Subject: Re: [Boost-users] Why does gcc require explicit template arguments with my boost::bind
From: Chris Stankevitz (chrisstankevitz_at_[hidden])
Date: 2012-12-06 14:06:00


On Wed, Dec 5, 2012 at 9:34 PM, Chris Stankevitz
<chrisstankevitz_at_[hidden]> wrote:
> template <typename TAFunc1, typename TAFunc2>
> void Chain(const TAFunc1& Func1, TAFunc2& Func2)
> {
> Func1();
> Func2();
> }

Another problem with this: The second argument should be a const
reference, not a mutable reference.

Chris


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