|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r84765 - in trunk: boost libs/signals/test
From: marshall_at_[hidden]
Date: 2013-06-13 13:37:52
Author: marshall
Date: 2013-06-13 13:37:52 EDT (Thu, 13 Jun 2013)
New Revision: 84765
URL: http://svn.boost.org/trac/boost/changeset/84765
Log:
Add deprecation warning to signal.hpp; turn off warning in tests suite
Text files modified:
trunk/boost/signal.hpp | 8 ++++++++
trunk/libs/signals/test/Jamfile.v2 | 1 +
2 files changed, 9 insertions(+), 0 deletions(-)
Modified: trunk/boost/signal.hpp
==============================================================================
--- trunk/boost/signal.hpp Thu Jun 13 12:50:47 2013 (r84764)
+++ trunk/boost/signal.hpp 2013-06-13 13:37:52 EDT (Thu, 13 Jun 2013) (r84765)
@@ -10,6 +10,14 @@
#ifndef BOOST_SIGNAL_HPP
#define BOOST_SIGNAL_HPP
+#ifndef BOOST_SIGNALS_NO_DEPRECATION_WARNING
+# if defined(_MSC_VER) || defined(__BORLANDC__) || defined(__DMC__)
+# pragma message ("Warning: Boost.Signals is no longer being maintained and is now deprecated. Please switch to Boost.Signals2. To disable this warning message, define BOOST_SIGNALS_NO_DEPRECATION_WARNING.")
+# elif defined(__GNUC__) || defined(__HP_aCC) || defined(__SUNPRO_CC) || defined(__IBMCPP__)
+# warning "Boost.Signals is no longer being maintained and is now deprecated. Please switch to Boost.Signals2. To disable this warning message, define BOOST_SIGNALS_NO_DEPRECATION_WARNING."
+# endif
+#endif
+
#ifndef BOOST_SIGNALS_MAX_ARGS
# define BOOST_SIGNALS_MAX_ARGS 10
#endif
Modified: trunk/libs/signals/test/Jamfile.v2
==============================================================================
--- trunk/libs/signals/test/Jamfile.v2 Thu Jun 13 12:50:47 2013 (r84764)
+++ trunk/libs/signals/test/Jamfile.v2 2013-06-13 13:37:52 EDT (Thu, 13 Jun 2013) (r84765)
@@ -16,6 +16,7 @@
<hardcode-dll-paths>true
<library>../../test/build//boost_test_exec_monitor
<library>../build//boost_signals
+ <define>BOOST_SIGNALS_NO_DEPRECATION_WARNING
<define>BOOST_SIGNALS_STATIC_LINK
<link>static
;
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk