Ticket #5782: bind_function.patch

File bind_function.patch, 716 bytes (added by Jamboree <tongari95@…>, 11 years ago)

patch

  • bind/bind_function.hpp

     
    3636    >
    3737    inline
    3838    typename detail::expression::function_eval<
    39         detail::function_ptr<1, RT, RT(*)(T0 &)>
     39        detail::function_ptr<1, RT, RT(*)(T0)>
    4040      , A0
    4141    >::type const
    42     bind(RT(*f)(T0 &), A0 const & a0)
     42    bind(RT(*f)(T0), A0 const & a0)
    4343    {
    44         typedef detail::function_ptr<1, RT, RT(*)(T0 &)> fp_type;
     44        typedef detail::function_ptr<1, RT, RT(*)(T0)> fp_type;
    4545        return detail::expression::function_eval<fp_type, A0>::make(fp_type(f), a0);
    4646    }
    4747