|
Boost-Commit : |
From: daniel_james_at_[hidden]
Date: 2007-10-20 06:31:58
Author: danieljames
Date: 2007-10-20 06:31:58 EDT (Sat, 20 Oct 2007)
New Revision: 40206
URL: http://svn.boost.org/trac/boost/changeset/40206
Log:
Try to only issue deprecation warnings on compilers that support them.
Text files modified:
trunk/boost/functional/hash/deque.hpp | 6 ++++--
trunk/boost/functional/hash/list.hpp | 6 ++++--
trunk/boost/functional/hash/map.hpp | 6 ++++--
trunk/boost/functional/hash/pair.hpp | 6 ++++--
trunk/boost/functional/hash/set.hpp | 6 ++++--
trunk/boost/functional/hash/vector.hpp | 6 ++++--
6 files changed, 24 insertions(+), 12 deletions(-)
Modified: trunk/boost/functional/hash/deque.hpp
==============================================================================
--- trunk/boost/functional/hash/deque.hpp (original)
+++ trunk/boost/functional/hash/deque.hpp 2007-10-20 06:31:58 EDT (Sat, 20 Oct 2007)
@@ -14,9 +14,11 @@
# pragma once
#endif
-#if defined(_MSC_VER) || defined(__BORLANDC__)
+#if defined(__EDG__)
+#elif defined(_MSC_VER) || defined(__BORLANDC__) || defined(__DMC__)
#pragma message("Warning: boost/functional/hash/deque.hpp is deprecated, use boost/functional/hash.hpp instead.")
-#else
+#elif defined(__GNUC__) || defined(__HP_aCC) || \
+ defined(__SUNPRO_CC) || defined(__IBMCPP__)
#warning "boost/functional/hash/deque.hpp is deprecated, use boost/functional/hash.hpp instead."
#endif
Modified: trunk/boost/functional/hash/list.hpp
==============================================================================
--- trunk/boost/functional/hash/list.hpp (original)
+++ trunk/boost/functional/hash/list.hpp 2007-10-20 06:31:58 EDT (Sat, 20 Oct 2007)
@@ -14,9 +14,11 @@
# pragma once
#endif
-#if defined(_MSC_VER) || defined(__BORLANDC__)
+#if defined(__EDG__)
+#elif defined(_MSC_VER) || defined(__BORLANDC__) || defined(__DMC__)
#pragma message("Warning: boost/functional/hash/list.hpp is deprecated, use boost/functional/hash.hpp instead.")
-#else
+#elif defined(__GNUC__) || defined(__HP_aCC) || \
+ defined(__SUNPRO_CC) || defined(__IBMCPP__)
#warning "boost/functional/hash/list.hpp is deprecated, use boost/functional/hash.hpp instead."
#endif
Modified: trunk/boost/functional/hash/map.hpp
==============================================================================
--- trunk/boost/functional/hash/map.hpp (original)
+++ trunk/boost/functional/hash/map.hpp 2007-10-20 06:31:58 EDT (Sat, 20 Oct 2007)
@@ -14,9 +14,11 @@
# pragma once
#endif
-#if defined(_MSC_VER) || defined(__BORLANDC__)
+#if defined(__EDG__)
+#elif defined(_MSC_VER) || defined(__BORLANDC__) || defined(__DMC__)
#pragma message("Warning: boost/functional/hash/map.hpp is deprecated, use boost/functional/hash.hpp instead.")
-#else
+#elif defined(__GNUC__) || defined(__HP_aCC) || \
+ defined(__SUNPRO_CC) || defined(__IBMCPP__)
#warning "boost/functional/hash/map.hpp is deprecated, use boost/functional/hash.hpp instead."
#endif
Modified: trunk/boost/functional/hash/pair.hpp
==============================================================================
--- trunk/boost/functional/hash/pair.hpp (original)
+++ trunk/boost/functional/hash/pair.hpp 2007-10-20 06:31:58 EDT (Sat, 20 Oct 2007)
@@ -14,9 +14,11 @@
# pragma once
#endif
-#if defined(_MSC_VER) || defined(__BORLANDC__)
+#if defined(__EDG__)
+#elif defined(_MSC_VER) || defined(__BORLANDC__) || defined(__DMC__)
#pragma message("Warning: boost/functional/hash/pair.hpp is deprecated, use boost/functional/hash.hpp instead.")
-#else
+#elif defined(__GNUC__) || defined(__HP_aCC) || \
+ defined(__SUNPRO_CC) || defined(__IBMCPP__)
#warning "boost/functional/hash/pair.hpp is deprecated, use boost/functional/hash.hpp instead."
#endif
Modified: trunk/boost/functional/hash/set.hpp
==============================================================================
--- trunk/boost/functional/hash/set.hpp (original)
+++ trunk/boost/functional/hash/set.hpp 2007-10-20 06:31:58 EDT (Sat, 20 Oct 2007)
@@ -14,9 +14,11 @@
# pragma once
#endif
-#if defined(_MSC_VER) || defined(__BORLANDC__)
+#if defined(__EDG__)
+#elif defined(_MSC_VER) || defined(__BORLANDC__) || defined(__DMC__)
#pragma message("Warning: boost/functional/hash/set.hpp is deprecated, use boost/functional/hash.hpp instead.")
-#else
+#elif defined(__GNUC__) || defined(__HP_aCC) || \
+ defined(__SUNPRO_CC) || defined(__IBMCPP__)
#warning "boost/functional/hash/set.hpp is deprecated, use boost/functional/hash.hpp instead."
#endif
Modified: trunk/boost/functional/hash/vector.hpp
==============================================================================
--- trunk/boost/functional/hash/vector.hpp (original)
+++ trunk/boost/functional/hash/vector.hpp 2007-10-20 06:31:58 EDT (Sat, 20 Oct 2007)
@@ -14,9 +14,11 @@
# pragma once
#endif
-#if defined(_MSC_VER) || defined(__BORLANDC__)
+#if defined(__EDG__)
+#elif defined(_MSC_VER) || defined(__BORLANDC__) || defined(__DMC__)
#pragma message("Warning: boost/functional/hash/vector.hpp is deprecated, use boost/functional/hash.hpp instead.")
-#else
+#elif defined(__GNUC__) || defined(__HP_aCC) || \
+ defined(__SUNPRO_CC) || defined(__IBMCPP__)
#warning "boost/functional/hash/vector.hpp is deprecated, use boost/functional/hash.hpp instead."
#endif
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