From 2244135e86dd50be80b3ecd07114220436ab6b1f Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 9 Mar 2004 12:49:00 +0000 Subject: [PATCH] Enable bind for data member pointers. [SVN r22460] --- include/boost/bind.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/include/boost/bind.hpp b/include/boost/bind.hpp index 8683675..897cbcc 100644 --- a/include/boost/bind.hpp +++ b/include/boost/bind.hpp @@ -128,6 +128,16 @@ template inline F & unwrap(reference_wrapper const * f, int) return f->get(); } +template inline _mfi::dm unwrap(R T::* * pm, int) +{ + return _mfi::dm(*pm); +} + +template inline _mfi::dm unwrap(R T::* const * pm, int) +{ + return _mfi::dm(*pm); +} + // listN class list0