mirror of
https://github.com/boostorg/function.git
synced 2025-07-23 17:37:14 +02:00
function_base.hpp:
- Use the BOOST_FUNCTION_SILENT_DEPRECATED macro as a signal to turn off all "deprecated" warnings [SVN r14756]
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
// Boost.Function library
|
// Boost.Function library
|
||||||
|
|
||||||
// Copyright (C) 2001 Doug Gregor (gregod@cs.rpi.edu)
|
// Copyright (C) 2001, 2002 Doug Gregor (gregod@cs.rpi.edu)
|
||||||
//
|
//
|
||||||
// Permission to copy, use, sell and distribute this software is granted
|
// Permission to copy, use, sell and distribute this software is granted
|
||||||
// provided this copyright notice appears in all copies.
|
// provided this copyright notice appears in all copies.
|
||||||
@ -32,12 +32,17 @@
|
|||||||
# define BOOST_FUNCTION_TARGET_FIX(x)
|
# define BOOST_FUNCTION_TARGET_FIX(x)
|
||||||
#endif // not MSVC
|
#endif // not MSVC
|
||||||
|
|
||||||
#if defined (BOOST_MSVC) && (BOOST_MSVC >= 1300)
|
#ifdef BOOST_FUNCTION_SILENT_DEPRECATED
|
||||||
# define BOOST_FUNCTION_DEPRECATED_PRE __declspec(deprecated)
|
# define BOOST_FUNCTION_DEPRECATED_PRE
|
||||||
# define BOOST_FUNCTION_DEPRECATED_INNER
|
# define BOOST_FUNCTION_DEPRECATED_INNER
|
||||||
#else
|
#else
|
||||||
# define BOOST_FUNCTION_DEPRECATED_PRE
|
# if defined (BOOST_MSVC) && (BOOST_MSVC >= 1300)
|
||||||
# define BOOST_FUNCTION_DEPRECATED_INNER int deprecated;
|
# define BOOST_FUNCTION_DEPRECATED_PRE __declspec(deprecated)
|
||||||
|
# define BOOST_FUNCTION_DEPRECATED_INNER
|
||||||
|
# else
|
||||||
|
# define BOOST_FUNCTION_DEPRECATED_PRE
|
||||||
|
# define BOOST_FUNCTION_DEPRECATED_INNER int deprecated;
|
||||||
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace boost {
|
namespace boost {
|
||||||
|
Reference in New Issue
Block a user