|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r86726 - in trunk/boost: . functional functional/hash functional/hash/detail unordered unordered/detail
From: dnljms_at_[hidden]
Date: 2013-11-16 15:13:24
Author: danieljames
Date: 2013-11-16 15:13:24 EST (Sat, 16 Nov 2013)
New Revision: 86726
URL: http://svn.boost.org/trac/boost/changeset/86726
Log:
Use `BOOST_HAS_PRAGMA_ONCE`.
Remembering to first include config, so that it'll actually be defined.
Text files modified:
trunk/boost/functional/hash/detail/float_functions.hpp | 8 ++++----
trunk/boost/functional/hash/detail/hash_float.hpp | 6 +++---
trunk/boost/functional/hash/detail/limits.hpp | 5 +++--
trunk/boost/functional/hash/extensions.hpp | 9 +++++----
trunk/boost/functional/hash/hash_fwd.hpp | 6 +++---
trunk/boost/functional/hash_fwd.hpp | 6 +++++-
trunk/boost/unordered/detail/allocate.hpp | 5 +++--
trunk/boost/unordered/detail/buckets.hpp | 5 +++--
trunk/boost/unordered/detail/equivalent.hpp | 5 +++--
trunk/boost/unordered/detail/extract_key.hpp | 5 +++++
trunk/boost/unordered/detail/fwd.hpp | 6 +++---
trunk/boost/unordered/detail/table.hpp | 5 +++++
trunk/boost/unordered/detail/unique.hpp | 5 +++--
trunk/boost/unordered/detail/util.hpp | 5 +++--
trunk/boost/unordered/unordered_map.hpp | 5 +++--
trunk/boost/unordered/unordered_map_fwd.hpp | 6 +++---
trunk/boost/unordered/unordered_set.hpp | 5 +++--
trunk/boost/unordered/unordered_set_fwd.hpp | 6 +++---
trunk/boost/unordered_map.hpp | 5 +++--
trunk/boost/unordered_set.hpp | 5 +++--
20 files changed, 69 insertions(+), 44 deletions(-)
Modified: trunk/boost/functional/hash/detail/float_functions.hpp
==============================================================================
--- trunk/boost/functional/hash/detail/float_functions.hpp Sat Nov 16 15:10:31 2013 (r86725)
+++ trunk/boost/functional/hash/detail/float_functions.hpp 2013-11-16 15:13:24 EST (Sat, 16 Nov 2013) (r86726)
@@ -7,12 +7,12 @@
#define BOOST_FUNCTIONAL_HASH_DETAIL_FLOAT_FUNCTIONS_HPP
#include <boost/config.hpp>
-#include <boost/config/no_tr1/cmath.hpp>
-
-#if defined(_MSC_VER)
-# pragma once
+#if defined(BOOST_HAS_PRAGMA_ONCE)
+#pragma once
#endif
+#include <boost/config/no_tr1/cmath.hpp>
+
// Set BOOST_HASH_CONFORMANT_FLOATS to 1 for libraries known to have
// sufficiently good floating point support to not require any
// workarounds.
Modified: trunk/boost/functional/hash/detail/hash_float.hpp
==============================================================================
--- trunk/boost/functional/hash/detail/hash_float.hpp Sat Nov 16 15:10:31 2013 (r86725)
+++ trunk/boost/functional/hash/detail/hash_float.hpp 2013-11-16 15:13:24 EST (Sat, 16 Nov 2013) (r86726)
@@ -6,11 +6,11 @@
#if !defined(BOOST_FUNCTIONAL_HASH_DETAIL_HASH_FLOAT_HEADER)
#define BOOST_FUNCTIONAL_HASH_DETAIL_HASH_FLOAT_HEADER
-#if defined(_MSC_VER)
-# pragma once
+#include <boost/config.hpp>
+#if defined(BOOST_HAS_PRAGMA_ONCE)
+#pragma once
#endif
-#include <boost/config.hpp>
#include <boost/functional/hash/detail/float_functions.hpp>
#include <boost/functional/hash/detail/limits.hpp>
#include <boost/utility/enable_if.hpp>
Modified: trunk/boost/functional/hash/detail/limits.hpp
==============================================================================
--- trunk/boost/functional/hash/detail/limits.hpp Sat Nov 16 15:10:31 2013 (r86725)
+++ trunk/boost/functional/hash/detail/limits.hpp 2013-11-16 15:13:24 EST (Sat, 16 Nov 2013) (r86726)
@@ -9,8 +9,9 @@
#if !defined(BOOST_FUNCTIONAL_HASH_DETAIL_LIMITS_HEADER)
#define BOOST_FUNCTIONAL_HASH_DETAIL_LIMITS_HEADER
-#if defined(_MSC_VER)
-# pragma once
+#include <boost/config.hpp>
+#if defined(BOOST_HAS_PRAGMA_ONCE)
+#pragma once
#endif
#include <boost/limits.hpp>
Modified: trunk/boost/functional/hash/extensions.hpp
==============================================================================
--- trunk/boost/functional/hash/extensions.hpp Sat Nov 16 15:10:31 2013 (r86725)
+++ trunk/boost/functional/hash/extensions.hpp 2013-11-16 15:13:24 EST (Sat, 16 Nov 2013) (r86726)
@@ -13,6 +13,11 @@
#if !defined(BOOST_FUNCTIONAL_HASH_EXTENSIONS_HPP)
#define BOOST_FUNCTIONAL_HASH_EXTENSIONS_HPP
+#include <boost/config.hpp>
+#if defined(BOOST_HAS_PRAGMA_ONCE)
+#pragma once
+#endif
+
#include <boost/functional/hash/hash.hpp>
#include <boost/detail/container_fwd.hpp>
#include <boost/utility/enable_if.hpp>
@@ -32,10 +37,6 @@
# include <memory>
#endif
-#if defined(_MSC_VER)
-# pragma once
-#endif
-
#if defined(BOOST_NO_FUNCTION_TEMPLATE_ORDERING)
#include <boost/type_traits/is_array.hpp>
#endif
Modified: trunk/boost/functional/hash/hash_fwd.hpp
==============================================================================
--- trunk/boost/functional/hash/hash_fwd.hpp Sat Nov 16 15:10:31 2013 (r86725)
+++ trunk/boost/functional/hash/hash_fwd.hpp 2013-11-16 15:13:24 EST (Sat, 16 Nov 2013) (r86726)
@@ -10,11 +10,11 @@
#if !defined(BOOST_FUNCTIONAL_HASH_FWD_HPP)
#define BOOST_FUNCTIONAL_HASH_FWD_HPP
-#if defined(_MSC_VER)
-# pragma once
+#include <boost/config.hpp>
+#if defined(BOOST_HAS_PRAGMA_ONCE)
+#pragma once
#endif
-#include <boost/config.hpp>
#include <cstddef>
#include <boost/detail/workaround.hpp>
Modified: trunk/boost/functional/hash_fwd.hpp
==============================================================================
--- trunk/boost/functional/hash_fwd.hpp Sat Nov 16 15:10:31 2013 (r86725)
+++ trunk/boost/functional/hash_fwd.hpp 2013-11-16 15:13:24 EST (Sat, 16 Nov 2013) (r86726)
@@ -3,5 +3,9 @@
// 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)
-#include <boost/functional/hash/hash_fwd.hpp>
+#include <boost/config.hpp>
+#if defined(BOOST_HAS_PRAGMA_ONCE)
+#pragma once
+#endif
+#include <boost/functional/hash/hash_fwd.hpp>
Modified: trunk/boost/unordered/detail/allocate.hpp
==============================================================================
--- trunk/boost/unordered/detail/allocate.hpp Sat Nov 16 15:10:31 2013 (r86725)
+++ trunk/boost/unordered/detail/allocate.hpp 2013-11-16 15:13:24 EST (Sat, 16 Nov 2013) (r86726)
@@ -9,8 +9,9 @@
#ifndef BOOST_UNORDERED_ALLOCATE_HPP
#define BOOST_UNORDERED_ALLOCATE_HPP
-#if defined(_MSC_VER)
-# pragma once
+#include <boost/config.hpp>
+#if defined(BOOST_HAS_PRAGMA_ONCE)
+#pragma once
#endif
#include <boost/unordered/detail/fwd.hpp>
Modified: trunk/boost/unordered/detail/buckets.hpp
==============================================================================
--- trunk/boost/unordered/detail/buckets.hpp Sat Nov 16 15:10:31 2013 (r86725)
+++ trunk/boost/unordered/detail/buckets.hpp 2013-11-16 15:13:24 EST (Sat, 16 Nov 2013) (r86726)
@@ -7,8 +7,9 @@
#ifndef BOOST_UNORDERED_DETAIL_MANAGER_HPP_INCLUDED
#define BOOST_UNORDERED_DETAIL_MANAGER_HPP_INCLUDED
-#if defined(_MSC_VER)
-# pragma once
+#include <boost/config.hpp>
+#if defined(BOOST_HAS_PRAGMA_ONCE)
+#pragma once
#endif
#include <boost/unordered/detail/util.hpp>
Modified: trunk/boost/unordered/detail/equivalent.hpp
==============================================================================
--- trunk/boost/unordered/detail/equivalent.hpp Sat Nov 16 15:10:31 2013 (r86725)
+++ trunk/boost/unordered/detail/equivalent.hpp 2013-11-16 15:13:24 EST (Sat, 16 Nov 2013) (r86726)
@@ -7,8 +7,9 @@
#ifndef BOOST_UNORDERED_DETAIL_EQUIVALENT_HPP_INCLUDED
#define BOOST_UNORDERED_DETAIL_EQUIVALENT_HPP_INCLUDED
-#if defined(_MSC_VER)
-# pragma once
+#include <boost/config.hpp>
+#if defined(BOOST_HAS_PRAGMA_ONCE)
+#pragma once
#endif
#include <boost/unordered/detail/table.hpp>
Modified: trunk/boost/unordered/detail/extract_key.hpp
==============================================================================
--- trunk/boost/unordered/detail/extract_key.hpp Sat Nov 16 15:10:31 2013 (r86725)
+++ trunk/boost/unordered/detail/extract_key.hpp 2013-11-16 15:13:24 EST (Sat, 16 Nov 2013) (r86726)
@@ -6,6 +6,11 @@
#ifndef BOOST_UNORDERED_DETAIL_EXTRACT_KEY_HPP_INCLUDED
#define BOOST_UNORDERED_DETAIL_EXTRACT_KEY_HPP_INCLUDED
+#include <boost/config.hpp>
+#if defined(BOOST_HAS_PRAGMA_ONCE)
+#pragma once
+#endif
+
#include <boost/unordered/detail/table.hpp>
namespace boost {
Modified: trunk/boost/unordered/detail/fwd.hpp
==============================================================================
--- trunk/boost/unordered/detail/fwd.hpp Sat Nov 16 15:10:31 2013 (r86725)
+++ trunk/boost/unordered/detail/fwd.hpp 2013-11-16 15:13:24 EST (Sat, 16 Nov 2013) (r86726)
@@ -6,11 +6,11 @@
#ifndef BOOST_UNORDERED_FWD_HPP_INCLUDED
#define BOOST_UNORDERED_FWD_HPP_INCLUDED
-#if defined(_MSC_VER)
-# pragma once
+#include <boost/config.hpp>
+#if defined(BOOST_HAS_PRAGMA_ONCE)
+#pragma once
#endif
-
namespace boost
{
namespace unordered
Modified: trunk/boost/unordered/detail/table.hpp
==============================================================================
--- trunk/boost/unordered/detail/table.hpp Sat Nov 16 15:10:31 2013 (r86725)
+++ trunk/boost/unordered/detail/table.hpp 2013-11-16 15:13:24 EST (Sat, 16 Nov 2013) (r86726)
@@ -7,6 +7,11 @@
#ifndef BOOST_UNORDERED_DETAIL_ALL_HPP_INCLUDED
#define BOOST_UNORDERED_DETAIL_ALL_HPP_INCLUDED
+#include <boost/config.hpp>
+#if defined(BOOST_HAS_PRAGMA_ONCE)
+#pragma once
+#endif
+
#include <boost/unordered/detail/buckets.hpp>
#include <boost/unordered/detail/util.hpp>
#include <boost/type_traits/aligned_storage.hpp>
Modified: trunk/boost/unordered/detail/unique.hpp
==============================================================================
--- trunk/boost/unordered/detail/unique.hpp Sat Nov 16 15:10:31 2013 (r86725)
+++ trunk/boost/unordered/detail/unique.hpp 2013-11-16 15:13:24 EST (Sat, 16 Nov 2013) (r86726)
@@ -7,8 +7,9 @@
#ifndef BOOST_UNORDERED_DETAIL_UNIQUE_HPP_INCLUDED
#define BOOST_UNORDERED_DETAIL_UNIQUE_HPP_INCLUDED
-#if defined(_MSC_VER)
-# pragma once
+#include <boost/config.hpp>
+#if defined(BOOST_HAS_PRAGMA_ONCE)
+#pragma once
#endif
#include <boost/unordered/detail/table.hpp>
Modified: trunk/boost/unordered/detail/util.hpp
==============================================================================
--- trunk/boost/unordered/detail/util.hpp Sat Nov 16 15:10:31 2013 (r86725)
+++ trunk/boost/unordered/detail/util.hpp 2013-11-16 15:13:24 EST (Sat, 16 Nov 2013) (r86726)
@@ -7,8 +7,9 @@
#ifndef BOOST_UNORDERED_DETAIL_UTIL_HPP_INCLUDED
#define BOOST_UNORDERED_DETAIL_UTIL_HPP_INCLUDED
-#if defined(_MSC_VER)
-# pragma once
+#include <boost/config.hpp>
+#if defined(BOOST_HAS_PRAGMA_ONCE)
+#pragma once
#endif
#include <boost/type_traits/is_convertible.hpp>
Modified: trunk/boost/unordered/unordered_map.hpp
==============================================================================
--- trunk/boost/unordered/unordered_map.hpp Sat Nov 16 15:10:31 2013 (r86725)
+++ trunk/boost/unordered/unordered_map.hpp 2013-11-16 15:13:24 EST (Sat, 16 Nov 2013) (r86726)
@@ -9,8 +9,9 @@
#ifndef BOOST_UNORDERED_UNORDERED_MAP_HPP_INCLUDED
#define BOOST_UNORDERED_UNORDERED_MAP_HPP_INCLUDED
-#if defined(_MSC_VER)
-# pragma once
+#include <boost/config.hpp>
+#if defined(BOOST_HAS_PRAGMA_ONCE)
+#pragma once
#endif
#include <boost/unordered/unordered_map_fwd.hpp>
Modified: trunk/boost/unordered/unordered_map_fwd.hpp
==============================================================================
--- trunk/boost/unordered/unordered_map_fwd.hpp Sat Nov 16 15:10:31 2013 (r86725)
+++ trunk/boost/unordered/unordered_map_fwd.hpp 2013-11-16 15:13:24 EST (Sat, 16 Nov 2013) (r86726)
@@ -6,11 +6,11 @@
#ifndef BOOST_UNORDERED_MAP_FWD_HPP_INCLUDED
#define BOOST_UNORDERED_MAP_FWD_HPP_INCLUDED
-#if defined(_MSC_VER)
-# pragma once
+#include <boost/config.hpp>
+#if defined(BOOST_HAS_PRAGMA_ONCE)
+#pragma once
#endif
-#include <boost/config.hpp>
#include <memory>
#include <functional>
#include <boost/functional/hash_fwd.hpp>
Modified: trunk/boost/unordered/unordered_set.hpp
==============================================================================
--- trunk/boost/unordered/unordered_set.hpp Sat Nov 16 15:10:31 2013 (r86725)
+++ trunk/boost/unordered/unordered_set.hpp 2013-11-16 15:13:24 EST (Sat, 16 Nov 2013) (r86726)
@@ -9,8 +9,9 @@
#ifndef BOOST_UNORDERED_UNORDERED_SET_HPP_INCLUDED
#define BOOST_UNORDERED_UNORDERED_SET_HPP_INCLUDED
-#if defined(_MSC_VER)
-# pragma once
+#include <boost/config.hpp>
+#if defined(BOOST_HAS_PRAGMA_ONCE)
+#pragma once
#endif
#include <boost/unordered/unordered_set_fwd.hpp>
Modified: trunk/boost/unordered/unordered_set_fwd.hpp
==============================================================================
--- trunk/boost/unordered/unordered_set_fwd.hpp Sat Nov 16 15:10:31 2013 (r86725)
+++ trunk/boost/unordered/unordered_set_fwd.hpp 2013-11-16 15:13:24 EST (Sat, 16 Nov 2013) (r86726)
@@ -6,11 +6,11 @@
#ifndef BOOST_UNORDERED_SET_FWD_HPP_INCLUDED
#define BOOST_UNORDERED_SET_FWD_HPP_INCLUDED
-#if defined(_MSC_VER)
-# pragma once
+#include <boost/config.hpp>
+#if defined(BOOST_HAS_PRAGMA_ONCE)
+#pragma once
#endif
-#include <boost/config.hpp>
#include <memory>
#include <functional>
#include <boost/functional/hash_fwd.hpp>
Modified: trunk/boost/unordered_map.hpp
==============================================================================
--- trunk/boost/unordered_map.hpp Sat Nov 16 15:10:31 2013 (r86725)
+++ trunk/boost/unordered_map.hpp 2013-11-16 15:13:24 EST (Sat, 16 Nov 2013) (r86726)
@@ -9,8 +9,9 @@
#ifndef BOOST_UNORDERED_MAP_HPP_INCLUDED
#define BOOST_UNORDERED_MAP_HPP_INCLUDED
-#if defined(_MSC_VER)
-# pragma once
+#include <boost/config.hpp>
+#if defined(BOOST_HAS_PRAGMA_ONCE)
+#pragma once
#endif
#include <boost/unordered/unordered_map.hpp>
Modified: trunk/boost/unordered_set.hpp
==============================================================================
--- trunk/boost/unordered_set.hpp Sat Nov 16 15:10:31 2013 (r86725)
+++ trunk/boost/unordered_set.hpp 2013-11-16 15:13:24 EST (Sat, 16 Nov 2013) (r86726)
@@ -9,8 +9,9 @@
#ifndef BOOST_UNORDERED_SET_HPP_INCLUDED
#define BOOST_UNORDERED_SET_HPP_INCLUDED
-#if defined(_MSC_VER)
-# pragma once
+#include <boost/config.hpp>
+#if defined(BOOST_HAS_PRAGMA_ONCE)
+#pragma once
#endif
#include <boost/unordered/unordered_set.hpp>
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