Boost logo

Boost Users :

Subject: Re: [Boost-users] [boost-users][bind, lambda, ...] binding unused actual parameter
From: Igor R (boost.lists_at_[hidden])
Date: 2009-04-16 16:04:49


>      template<class U> R operator()(U & u) const
>      {
> -        BOOST_MEM_FN_RETURN call(u, &u);
> +        BOOST_MEM_FN_RETURN call(u, false ? &u : 0);
>      }
>
>  #ifdef BOOST_MEM_FN_ENABLE_CONST_OVERLOADS
>
>      template<class U> R operator()(U const & u) const
>      {
> -        BOOST_MEM_FN_RETURN call(u, &u);
> +        BOOST_MEM_FN_RETURN call(u, false ? &u : 0);
>      }
>
>  #endif

Wow, very nice idea!
But if you intend to commit this patch to the trunk, please note that
there're 25 more places in this file where the above change should be
done :).


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