1
0
forked from boostorg/bind

Use std::mem_fn, std::bind

This commit is contained in:
Peter Dimov
2019-11-05 18:58:02 +02:00
parent d6ac20c4fd
commit bf17d15d3c
2 changed files with 34 additions and 0 deletions

View File

@@ -21,6 +21,23 @@
// See http://www.boost.org/libs/bind/bind.html for documentation.
//
#if 1
#include <boost/ref.hpp>
#include <boost/mem_fn.hpp>
#include <functional>
namespace boost
{
using std::bind;
namespace placeholders = std::placeholders;
} // namespace boost
#else
#include <boost/config.hpp>
#include <boost/ref.hpp>
#include <boost/mem_fn.hpp>
@@ -2362,4 +2379,6 @@ BOOST_BIND( M T::*f, A1 a1 )
# pragma warning(pop)
#endif
#endif
#endif // #ifndef BOOST_BIND_BIND_HPP_INCLUDED

View File

@@ -21,6 +21,19 @@
// See http://www.boost.org/libs/bind/mem_fn.html for documentation.
//
#if 1
#include <functional>
namespace boost
{
using std::mem_fn;
} // namespace boost
#else
#include <boost/config.hpp>
#include <boost/get_pointer.hpp>
#include <boost/detail/workaround.hpp>
@@ -386,4 +399,6 @@ template<class R, class T> _mfi::dm<R, T> mem_fn(R T::*f)
} // namespace boost
#endif
#endif // #ifndef BOOST_BIND_MEM_FN_HPP_INCLUDED