From 9ffd0a08c52bf62bd85484c4eba307658c468364 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Mon, 13 Sep 2004 17:43:08 +0000 Subject: [PATCH] Switched data members to return by value to avoid a const ref to short lived temp problem [SVN r25058] --- include/boost/bind.hpp | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/include/boost/bind.hpp b/include/boost/bind.hpp index e435ee2..a8308e9 100644 --- a/include/boost/bind.hpp +++ b/include/boost/bind.hpp @@ -1448,6 +1448,8 @@ template, typename _bi::list_av_1::type > #endif +*/ + +template +_bi::bind_t< R, _mfi::dm, typename _bi::list_av_1::type > + BOOST_BIND(R T::*f, A1 a1) +{ + typedef _mfi::dm F; + typedef typename _bi::list_av_1::type list_type; + return _bi::bind_t( F(f), list_type(a1) ); +} + } // namespace boost #ifndef BOOST_BIND_NO_PLACEHOLDERS