From bf17d15d3cd0feb9637d18fdc6ee135189325bd8 Mon Sep 17 00:00:00 2001 From: Peter Dimov Date: Tue, 5 Nov 2019 18:58:02 +0200 Subject: [PATCH] Use std::mem_fn, std::bind --- include/boost/bind/bind.hpp | 19 +++++++++++++++++++ include/boost/bind/mem_fn.hpp | 15 +++++++++++++++ 2 files changed, 34 insertions(+) diff --git a/include/boost/bind/bind.hpp b/include/boost/bind/bind.hpp index 711e000..aa6b8ae 100644 --- a/include/boost/bind/bind.hpp +++ b/include/boost/bind/bind.hpp @@ -21,6 +21,23 @@ // See http://www.boost.org/libs/bind/bind.html for documentation. // +#if 1 + +#include +#include +#include + +namespace boost +{ + +using std::bind; + +namespace placeholders = std::placeholders; + +} // namespace boost + +#else + #include #include #include @@ -2362,4 +2379,6 @@ BOOST_BIND( M T::*f, A1 a1 ) # pragma warning(pop) #endif +#endif + #endif // #ifndef BOOST_BIND_BIND_HPP_INCLUDED diff --git a/include/boost/bind/mem_fn.hpp b/include/boost/bind/mem_fn.hpp index fc83fd7..e9a8213 100644 --- a/include/boost/bind/mem_fn.hpp +++ b/include/boost/bind/mem_fn.hpp @@ -21,6 +21,19 @@ // See http://www.boost.org/libs/bind/mem_fn.html for documentation. // +#if 1 + +#include + +namespace boost +{ + +using std::mem_fn; + +} // namespace boost + +#else + #include #include #include @@ -386,4 +399,6 @@ template _mfi::dm mem_fn(R T::*f) } // namespace boost +#endif + #endif // #ifndef BOOST_BIND_MEM_FN_HPP_INCLUDED