forked from boostorg/bind
Add deprecation notice to boost/bind.hpp
This commit is contained in:
@ -7,7 +7,6 @@
|
|||||||
# pragma once
|
# pragma once
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
//
|
|
||||||
// bind.hpp - binds function objects to arguments
|
// bind.hpp - binds function objects to arguments
|
||||||
//
|
//
|
||||||
// Copyright (c) 2009, 2015 Peter Dimov
|
// Copyright (c) 2009, 2015 Peter Dimov
|
||||||
@ -18,6 +17,15 @@
|
|||||||
//
|
//
|
||||||
// See http://www.boost.org/libs/bind/bind.html for documentation.
|
// See http://www.boost.org/libs/bind/bind.html for documentation.
|
||||||
//
|
//
|
||||||
|
// 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.
|
||||||
|
|
||||||
|
#include <boost/config/header_deprecated.hpp>
|
||||||
|
BOOST_HEADER_DEPRECATED( "<boost/bind/bind.hpp>" )
|
||||||
|
|
||||||
#include <boost/bind/bind.hpp>
|
#include <boost/bind/bind.hpp>
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user