|
Boost Users : |
Subject: Re: [Boost-users] boost::proto user guide - compile error creating a lazy function
From: Tom Babbin (ctb070_at_[hidden])
Date: 2009-09-21 14:19:28
Eric Niebler <eric <at> boostpro.com> writes:
>
> The reason is because in the second invocation, the template argument T
> is deduced to be "B const", and an rvalue can bind to a const lvalue
> reference. In the first invocation, T is deduced to "B" and an rvalue
> cannot bind to a non-const lvalue reference.
>
> HTH,
>
Thanks again, Eric. This is really helpful.
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