1#ifndef BOOST_BIND_HPP_INCLUDED
2#define BOOST_BIND_HPP_INCLUDED
3
4// MS compatible compilers support #pragma once
5
6#if defined(_MSC_VER) && (_MSC_VER >= 1020)
7# pragma once
8#endif
9
10// bind.hpp - binds function objects to arguments
11//
12// Copyright (c) 2009, 2015 Peter Dimov
13//
14// Distributed under the Boost Software License, Version 1.0.
15// See accompanying file LICENSE_1_0.txt or copy at
16// http://www.boost.org/LICENSE_1_0.txt
17//
18// See http://www.boost.org/libs/bind/bind.html for documentation.
19//
20// For backward compatibility, this header includes
21// <boost/bind/bind.hpp> and then imports the placeholders _1, _2,
22// _3, ... into the global namespace. Definitions in the global
23// namespace are not a good practice and this use is deprecated.
24// Please switch to including <boost/bind/bind.hpp> directly,
25// adding the using directive locally where appropriate.
26// Alternatively, the existing behavior may be preserved by defining
27// the macro BOOST_BIND_GLOBAL_PLACEHOLDERS.
28
29#include <boost/bind/bind.hpp>
30#include <boost/config/pragma_message.hpp>
31
32#ifndef BOOST_BIND_NO_PLACEHOLDERS
33
34#if !defined(BOOST_BIND_GLOBAL_PLACEHOLDERS)
35
36BOOST_PRAGMA_MESSAGE(
37 "The practice of declaring the Bind placeholders (_1, _2, ...) "
38 "in the global namespace is deprecated. Please use "
39 "<boost/bind/bind.hpp> + using namespace boost::placeholders, "
40 "or define BOOST_BIND_GLOBAL_PLACEHOLDERS to retain the current behavior."
41)
42
43#endif
44
45#if defined(BOOST_CLANG)
46# pragma clang diagnostic push
47# if __has_warning("-Wheader-hygiene")
48# pragma clang diagnostic ignored "-Wheader-hygiene"
49# endif
50#endif
51
52using namespace boost::placeholders;
53
54#if defined(BOOST_CLANG)
55# pragma clang diagnostic pop
56#endif
57
58#endif // #ifndef BOOST_BIND_NO_PLACEHOLDERS
59
60#endif // #ifndef BOOST_BIND_HPP_INCLUDED
61

source code of boost/libs/bind/include/boost/bind.hpp