2001-09-04 17:16:30 +00:00
|
|
|
#ifndef BOOST_BIND_HPP_INCLUDED
|
|
|
|
|
#define BOOST_BIND_HPP_INCLUDED
|
|
|
|
|
|
2003-11-28 15:35:21 +00:00
|
|
|
// MS compatible compilers support #pragma once
|
|
|
|
|
|
2003-06-12 17:09:24 +00:00
|
|
|
#if defined(_MSC_VER) && (_MSC_VER >= 1020)
|
|
|
|
|
# pragma once
|
2001-09-04 17:16:30 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
// bind.hpp - binds function objects to arguments
|
|
|
|
|
//
|
2015-05-27 01:29:50 +03:00
|
|
|
// Copyright (c) 2009, 2015 Peter Dimov
|
2001-09-04 17:16:30 +00:00
|
|
|
//
|
2009-03-02 16:15:40 +00:00
|
|
|
// Distributed under the Boost Software License, Version 1.0.
|
|
|
|
|
// See accompanying file LICENSE_1_0.txt or copy at
|
|
|
|
|
// http://www.boost.org/LICENSE_1_0.txt
|
2001-09-04 17:16:30 +00:00
|
|
|
//
|
|
|
|
|
// See http://www.boost.org/libs/bind/bind.html for documentation.
|
|
|
|
|
//
|
2019-12-13 19:16:51 +02:00
|
|
|
// For backward compatibility, this header includes
|
|
|
|
|
// <boost/bind/bind.hpp> and then imports the placeholders _1, _2,
|
|
|
|
|
// _3, ... into the global namespace. Definitions in the global
|
|
|
|
|
// namespace are not a good practice and this use is deprecated.
|
|
|
|
|
// Please switch to including <boost/bind/bind.hpp> directly,
|
|
|
|
|
// adding the using directive locally where appropriate.
|
2020-02-16 18:13:43 +02:00
|
|
|
// Alternatively, the existing behavior may be preserved by defining
|
|
|
|
|
// the macro BOOST_BIND_GLOBAL_PLACEHOLDERS.
|
2001-09-04 17:16:30 +00:00
|
|
|
|
2009-03-02 16:15:40 +00:00
|
|
|
#include <boost/bind/bind.hpp>
|
2020-02-16 18:13:43 +02:00
|
|
|
#include <boost/config/pragma_message.hpp>
|
2002-01-25 13:05:21 +00:00
|
|
|
|
2015-05-29 11:26:59 +02:00
|
|
|
#ifndef BOOST_BIND_NO_PLACEHOLDERS
|
|
|
|
|
|
2020-02-16 18:13:43 +02:00
|
|
|
#if !defined(BOOST_BIND_GLOBAL_PLACEHOLDERS)
|
|
|
|
|
|
|
|
|
|
BOOST_PRAGMA_MESSAGE(
|
|
|
|
|
"The practice of declaring the Bind placeholders (_1, _2, ...) "
|
|
|
|
|
"in the global namespace is deprecated. Please use "
|
|
|
|
|
"<boost/bind/bind.hpp> + using namespace boost::placeholders, "
|
|
|
|
|
"or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior."
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
2015-05-27 15:39:52 +02:00
|
|
|
#if defined(BOOST_CLANG)
|
|
|
|
|
# pragma clang diagnostic push
|
2015-05-27 17:28:56 +03:00
|
|
|
# if __has_warning("-Wheader-hygiene")
|
|
|
|
|
# pragma clang diagnostic ignored "-Wheader-hygiene"
|
2015-05-27 15:39:52 +02:00
|
|
|
# endif
|
|
|
|
|
#endif
|
|
|
|
|
|
2015-05-27 01:29:50 +03:00
|
|
|
using namespace boost::placeholders;
|
|
|
|
|
|
2015-05-27 15:39:52 +02:00
|
|
|
#if defined(BOOST_CLANG)
|
|
|
|
|
# pragma clang diagnostic pop
|
|
|
|
|
#endif
|
|
|
|
|
|
2015-05-29 11:26:59 +02:00
|
|
|
#endif // #ifndef BOOST_BIND_NO_PLACEHOLDERS
|
|
|
|
|
|
2001-09-04 17:16:30 +00:00
|
|
|
#endif // #ifndef BOOST_BIND_HPP_INCLUDED
|