Use built-in deprecation facilities, when available

[SVN r14677]
This commit is contained in:
Douglas Gregor
2002-08-05 03:08:08 +00:00
parent 837591456f
commit 694ebbb301
3 changed files with 22 additions and 9 deletions

View File

@ -31,6 +31,14 @@
# define BOOST_FUNCTION_TARGET_FIX(x)
#endif // not MSVC
#if defined (BOOST_MSVC) && (BOOST_MSVC >= 1300)
# define BOOST_FUNCTION_DEPRECATED_PRE __declspec(deprecated)
# define BOOST_FUNCTION_DEPRECATED_INSIDE
#else
# define BOOST_FUNCTION_DEPRECATED_PRE
# define BOOST_FUNCTION_DEPRECATED_INSIDE int deprecated;
#endif
namespace boost {
namespace detail {
namespace function {