|
Boost-Commit : |
From: daniel_james_at_[hidden]
Date: 2007-10-13 17:50:06
Author: danieljames
Date: 2007-10-13 17:50:05 EDT (Sat, 13 Oct 2007)
New Revision: 39991
URL: http://svn.boost.org/trac/boost/changeset/39991
Log:
Use a pragma for warnings in Visual C++.
Text files modified:
trunk/boost/functional/hash/deque.hpp | 8 ++++++--
trunk/boost/functional/hash/list.hpp | 8 ++++++--
trunk/boost/functional/hash/map.hpp | 9 ++++++---
trunk/boost/functional/hash/pair.hpp | 7 ++++++-
trunk/boost/functional/hash/set.hpp | 8 ++++++--
trunk/boost/functional/hash/vector.hpp | 7 ++++++-
6 files changed, 36 insertions(+), 11 deletions(-)
Modified: trunk/boost/functional/hash/deque.hpp
==============================================================================
--- trunk/boost/functional/hash/deque.hpp (original)
+++ trunk/boost/functional/hash/deque.hpp 2007-10-13 17:50:05 EDT (Sat, 13 Oct 2007)
@@ -1,5 +1,5 @@
-// Copyright 2005-2006 Daniel James.
+// Copyright 2005-2007 Daniel James.
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -14,8 +14,12 @@
# pragma once
#endif
+#if defined(_MSC_VER)
+#pragma message("Warning: boost/functional/hash/deque.hpp is deprecated, use boost/functional/hash.hpp instead.")
+#else
#warning "boost/functional/hash/deque.hpp is deprecated, use boost/functional/hash.hpp instead."
+#endif
+
#include <boost/functional/hash.hpp>
#endif
-
Modified: trunk/boost/functional/hash/list.hpp
==============================================================================
--- trunk/boost/functional/hash/list.hpp (original)
+++ trunk/boost/functional/hash/list.hpp 2007-10-13 17:50:05 EDT (Sat, 13 Oct 2007)
@@ -1,5 +1,5 @@
-// Copyright 2005-2006 Daniel James.
+// Copyright 2005-2007 Daniel James.
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -14,8 +14,12 @@
# pragma once
#endif
+#if defined(_MSC_VER)
+#pragma message("Warning: boost/functional/hash/list.hpp is deprecated, use boost/functional/hash.hpp instead.")
+#else
#warning "boost/functional/hash/list.hpp is deprecated, use boost/functional/hash.hpp instead."
+#endif
+
#include <boost/functional/hash.hpp>
#endif
-
Modified: trunk/boost/functional/hash/map.hpp
==============================================================================
--- trunk/boost/functional/hash/map.hpp (original)
+++ trunk/boost/functional/hash/map.hpp 2007-10-13 17:50:05 EDT (Sat, 13 Oct 2007)
@@ -1,5 +1,5 @@
-// Copyright 2005-2006 Daniel James.
+// Copyright 2005-2007 Daniel James.
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -14,9 +14,12 @@
# pragma once
#endif
+#if defined(_MSC_VER)
+#pragma message("Warning: boost/functional/hash/map.hpp is deprecated, use boost/functional/hash.hpp instead.")
+#else
#warning "boost/functional/hash/map.hpp is deprecated, use boost/functional/hash.hpp instead."
-#include <boost/functional/hash.hpp>
-
#endif
+#include <boost/functional/hash.hpp>
+#endif
Modified: trunk/boost/functional/hash/pair.hpp
==============================================================================
--- trunk/boost/functional/hash/pair.hpp (original)
+++ trunk/boost/functional/hash/pair.hpp 2007-10-13 17:50:05 EDT (Sat, 13 Oct 2007)
@@ -1,5 +1,5 @@
-// Copyright 2005-2006 Daniel James.
+// Copyright 2005-2007 Daniel James.
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -14,7 +14,12 @@
# pragma once
#endif
+#if defined(_MSC_VER)
+#pragma message("Warning: boost/functional/hash/pair.hpp is deprecated, use boost/functional/hash.hpp instead.")
+#else
#warning "boost/functional/hash/pair.hpp is deprecated, use boost/functional/hash.hpp instead."
+#endif
+
#include <boost/functional/hash.hpp>
#endif
Modified: trunk/boost/functional/hash/set.hpp
==============================================================================
--- trunk/boost/functional/hash/set.hpp (original)
+++ trunk/boost/functional/hash/set.hpp 2007-10-13 17:50:05 EDT (Sat, 13 Oct 2007)
@@ -1,5 +1,5 @@
-// Copyright 2005-2006 Daniel James.
+// Copyright 2005-2007 Daniel James.
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -14,8 +14,12 @@
# pragma once
#endif
+#if defined(_MSC_VER)
+#pragma message("Warning: boost/functional/hash/set.hpp is deprecated, use boost/functional/hash.hpp instead.")
+#else
#warning "boost/functional/hash/set.hpp is deprecated, use boost/functional/hash.hpp instead."
+#endif
+
#include <boost/functional/hash.hpp>
#endif
-
Modified: trunk/boost/functional/hash/vector.hpp
==============================================================================
--- trunk/boost/functional/hash/vector.hpp (original)
+++ trunk/boost/functional/hash/vector.hpp 2007-10-13 17:50:05 EDT (Sat, 13 Oct 2007)
@@ -1,5 +1,5 @@
-// Copyright 2005-2006 Daniel James.
+// Copyright 2005-2007 Daniel James.
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
@@ -14,7 +14,12 @@
# pragma once
#endif
+#if defined(_MSC_VER)
+#pragma message("Warning: boost/functional/hash/vector.hpp is deprecated, use boost/functional/hash.hpp instead.")
+#else
#warning "boost/functional/hash/vector.hpp is deprecated, use boost/functional/hash.hpp instead."
+#endif
+
#include <boost/functional/hash.hpp>
#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