|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r85090 - trunk/boost/atomic/detail
From: andrey.semashev_at_[hidden]
Date: 2013-07-20 13:46:49
Author: andysem
Date: 2013-07-20 13:46:48 EDT (Sat, 20 Jul 2013)
New Revision: 85090
URL: http://svn.boost.org/trac/boost/changeset/85090
Log:
Added missing includes and std:: qualification for ptrdiff_t.
Text files modified:
trunk/boost/atomic/detail/base.hpp | 10 ++--------
trunk/boost/atomic/detail/cas128strong.hpp | 1 +
trunk/boost/atomic/detail/cas32strong.hpp | 5 +++--
trunk/boost/atomic/detail/cas32weak.hpp | 5 +++--
trunk/boost/atomic/detail/cas64strong-ptr.hpp | 5 +++--
trunk/boost/atomic/detail/cas64strong.hpp | 1 +
trunk/boost/atomic/detail/gcc-armv6plus.hpp | 1 -
trunk/boost/atomic/detail/gcc-atomic.hpp | 1 +
trunk/boost/atomic/detail/gcc-cas.hpp | 1 -
trunk/boost/atomic/detail/gcc-ppc.hpp | 9 +++++----
trunk/boost/atomic/detail/gcc-sparcv9.hpp | 5 +++--
trunk/boost/atomic/detail/gcc-x86.hpp | 9 +++++----
trunk/boost/atomic/detail/windows.hpp | 5 +++--
13 files changed, 30 insertions(+), 28 deletions(-)
Modified: trunk/boost/atomic/detail/base.hpp
==============================================================================
--- trunk/boost/atomic/detail/base.hpp Sat Jul 20 13:20:02 2013 (r85089)
+++ trunk/boost/atomic/detail/base.hpp 2013-07-20 13:46:48 EDT (Sat, 20 Jul 2013) (r85090)
@@ -19,12 +19,6 @@
#include <boost/atomic/detail/config.hpp>
#include <boost/atomic/detail/lockpool.hpp>
-
-#ifdef __QNX__
-#include <stddef.h>
-#endif
-
-
#ifdef BOOST_HAS_PRAGMA_ONCE
#pragma once
#endif
@@ -408,7 +402,7 @@
private:
typedef base_atomic this_type;
typedef T * value_type;
- typedef ptrdiff_t difference_type;
+ typedef std::ptrdiff_t difference_type;
typedef lockpool::scoped_lock guard_type;
protected:
@@ -506,7 +500,7 @@
{
private:
typedef base_atomic this_type;
- typedef ptrdiff_t difference_type;
+ typedef std::ptrdiff_t difference_type;
typedef void * value_type;
typedef lockpool::scoped_lock guard_type;
Modified: trunk/boost/atomic/detail/cas128strong.hpp
==============================================================================
--- trunk/boost/atomic/detail/cas128strong.hpp Sat Jul 20 13:20:02 2013 (r85089)
+++ trunk/boost/atomic/detail/cas128strong.hpp 2013-07-20 13:46:48 EDT (Sat, 20 Jul 2013) (r85090)
@@ -12,6 +12,7 @@
// primitive. It is assumed that 128-bit loads/stores are not
// atomic, so they are implemented through platform_load128/platform_store128.
+#include <string.h>
#include <cstddef>
#include <boost/cstdint.hpp>
#include <boost/memory_order.hpp>
Modified: trunk/boost/atomic/detail/cas32strong.hpp
==============================================================================
--- trunk/boost/atomic/detail/cas32strong.hpp Sat Jul 20 13:20:02 2013 (r85089)
+++ trunk/boost/atomic/detail/cas32strong.hpp 2013-07-20 13:46:48 EDT (Sat, 20 Jul 2013) (r85090)
@@ -12,6 +12,7 @@
// Build 8-, 16- and 32-bit atomic operations from
// a platform_cmpxchg32_strong primitive.
+#include <string.h>
#include <cstddef>
#include <boost/cstdint.hpp>
#include <boost/memory_order.hpp>
@@ -436,7 +437,7 @@
private:
typedef base_atomic this_type;
typedef void * value_type;
- typedef ptrdiff_t difference_type;
+ typedef std::ptrdiff_t difference_type;
protected:
typedef value_type value_arg_type;
@@ -539,7 +540,7 @@
private:
typedef base_atomic this_type;
typedef T * value_type;
- typedef ptrdiff_t difference_type;
+ typedef std::ptrdiff_t difference_type;
protected:
typedef value_type value_arg_type;
Modified: trunk/boost/atomic/detail/cas32weak.hpp
==============================================================================
--- trunk/boost/atomic/detail/cas32weak.hpp Sat Jul 20 13:20:02 2013 (r85089)
+++ trunk/boost/atomic/detail/cas32weak.hpp 2013-07-20 13:46:48 EDT (Sat, 20 Jul 2013) (r85090)
@@ -9,6 +9,7 @@
// Copyright (c) 2013 Tim Blechmann
+#include <string.h>
#include <cstddef>
#include <boost/cstdint.hpp>
#include <boost/memory_order.hpp>
@@ -463,7 +464,7 @@
private:
typedef base_atomic this_type;
typedef void * value_type;
- typedef ptrdiff_t difference_type;
+ typedef std::ptrdiff_t difference_type;
protected:
typedef value_type value_arg_type;
@@ -576,7 +577,7 @@
private:
typedef base_atomic this_type;
typedef T * value_type;
- typedef ptrdiff_t difference_type;
+ typedef std::ptrdiff_t difference_type;
protected:
typedef value_type value_arg_type;
Modified: trunk/boost/atomic/detail/cas64strong-ptr.hpp
==============================================================================
--- trunk/boost/atomic/detail/cas64strong-ptr.hpp Sat Jul 20 13:20:02 2013 (r85089)
+++ trunk/boost/atomic/detail/cas64strong-ptr.hpp 2013-07-20 13:46:48 EDT (Sat, 20 Jul 2013) (r85090)
@@ -17,6 +17,7 @@
// On these platforms there is no need for 64-bit pointer specializations,
// since they will never be used.
+#include <string.h>
#include <cstddef>
#include <boost/cstdint.hpp>
#include <boost/memory_order.hpp>
@@ -39,7 +40,7 @@
private:
typedef base_atomic this_type;
typedef void * value_type;
- typedef ptrdiff_t difference_type;
+ typedef std::ptrdiff_t difference_type;
protected:
typedef value_type value_arg_type;
@@ -142,7 +143,7 @@
private:
typedef base_atomic this_type;
typedef T * value_type;
- typedef ptrdiff_t difference_type;
+ typedef std::ptrdiff_t difference_type;
protected:
typedef value_type value_arg_type;
Modified: trunk/boost/atomic/detail/cas64strong.hpp
==============================================================================
--- trunk/boost/atomic/detail/cas64strong.hpp Sat Jul 20 13:20:02 2013 (r85089)
+++ trunk/boost/atomic/detail/cas64strong.hpp 2013-07-20 13:46:48 EDT (Sat, 20 Jul 2013) (r85090)
@@ -12,6 +12,7 @@
// primitive. It is assumed that 64-bit loads/stores are not
// atomic, so they are implemented through platform_load64/platform_store64.
+#include <string.h>
#include <cstddef>
#include <boost/cstdint.hpp>
#include <boost/memory_order.hpp>
Modified: trunk/boost/atomic/detail/gcc-armv6plus.hpp
==============================================================================
--- trunk/boost/atomic/detail/gcc-armv6plus.hpp Sat Jul 20 13:20:02 2013 (r85089)
+++ trunk/boost/atomic/detail/gcc-armv6plus.hpp 2013-07-20 13:46:48 EDT (Sat, 20 Jul 2013) (r85090)
@@ -10,7 +10,6 @@
// Copyright (c) 2013 Tim Blechmann
// ARM Code by Phil Endecott, based on other architectures.
-#include <cstddef>
#include <boost/cstdint.hpp>
#include <boost/atomic/detail/config.hpp>
Modified: trunk/boost/atomic/detail/gcc-atomic.hpp
==============================================================================
--- trunk/boost/atomic/detail/gcc-atomic.hpp Sat Jul 20 13:20:02 2013 (r85089)
+++ trunk/boost/atomic/detail/gcc-atomic.hpp 2013-07-20 13:46:48 EDT (Sat, 20 Jul 2013) (r85090)
@@ -7,6 +7,7 @@
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
+#include <string.h>
#include <cstddef>
#include <boost/cstdint.hpp>
#include <boost/atomic/detail/config.hpp>
Modified: trunk/boost/atomic/detail/gcc-cas.hpp
==============================================================================
--- trunk/boost/atomic/detail/gcc-cas.hpp Sat Jul 20 13:20:02 2013 (r85089)
+++ trunk/boost/atomic/detail/gcc-cas.hpp 2013-07-20 13:46:48 EDT (Sat, 20 Jul 2013) (r85090)
@@ -11,7 +11,6 @@
#ifndef BOOST_ATOMIC_DETAIL_GENERIC_CAS_HPP
#define BOOST_ATOMIC_DETAIL_GENERIC_CAS_HPP
-#include <cstddef>
#include <boost/cstdint.hpp>
#include <boost/atomic/detail/config.hpp>
Modified: trunk/boost/atomic/detail/gcc-ppc.hpp
==============================================================================
--- trunk/boost/atomic/detail/gcc-ppc.hpp Sat Jul 20 13:20:02 2013 (r85089)
+++ trunk/boost/atomic/detail/gcc-ppc.hpp 2013-07-20 13:46:48 EDT (Sat, 20 Jul 2013) (r85090)
@@ -8,6 +8,7 @@
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
+#include <string.h>
#include <cstddef>
#include <boost/cstdint.hpp>
#include <boost/atomic/detail/config.hpp>
@@ -1571,7 +1572,7 @@
{
private:
typedef base_atomic this_type;
- typedef ptrdiff_t difference_type;
+ typedef std::ptrdiff_t difference_type;
typedef void * value_type;
protected:
@@ -1745,7 +1746,7 @@
private:
typedef base_atomic this_type;
typedef T * value_type;
- typedef ptrdiff_t difference_type;
+ typedef std::ptrdiff_t difference_type;
protected:
typedef value_type value_arg_type;
@@ -1921,7 +1922,7 @@
{
private:
typedef base_atomic this_type;
- typedef ptrdiff_t difference_type;
+ typedef std::ptrdiff_t difference_type;
typedef void * value_type;
protected:
@@ -2095,7 +2096,7 @@
private:
typedef base_atomic this_type;
typedef T * value_type;
- typedef ptrdiff_t difference_type;
+ typedef std::ptrdiff_t difference_type;
protected:
typedef value_type value_arg_type;
Modified: trunk/boost/atomic/detail/gcc-sparcv9.hpp
==============================================================================
--- trunk/boost/atomic/detail/gcc-sparcv9.hpp Sat Jul 20 13:20:02 2013 (r85089)
+++ trunk/boost/atomic/detail/gcc-sparcv9.hpp 2013-07-20 13:46:48 EDT (Sat, 20 Jul 2013) (r85090)
@@ -8,6 +8,7 @@
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
+#include <string.h>
#include <cstddef>
#include <boost/cstdint.hpp>
#include <boost/atomic/detail/config.hpp>
@@ -832,7 +833,7 @@
{
private:
typedef base_atomic this_type;
- typedef ptrdiff_t difference_type;
+ typedef std::ptrdiff_t difference_type;
typedef void * value_type;
protected:
@@ -933,7 +934,7 @@
private:
typedef base_atomic this_type;
typedef T * value_type;
- typedef ptrdiff_t difference_type;
+ typedef std::ptrdiff_t difference_type;
protected:
typedef value_type value_arg_type;
Modified: trunk/boost/atomic/detail/gcc-x86.hpp
==============================================================================
--- trunk/boost/atomic/detail/gcc-x86.hpp Sat Jul 20 13:20:02 2013 (r85089)
+++ trunk/boost/atomic/detail/gcc-x86.hpp 2013-07-20 13:46:48 EDT (Sat, 20 Jul 2013) (r85090)
@@ -8,6 +8,7 @@
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
+#include <string.h>
#include <cstddef>
#include <boost/cstdint.hpp>
#include <boost/atomic/detail/config.hpp>
@@ -881,7 +882,7 @@
{
private:
typedef base_atomic this_type;
- typedef ptrdiff_t difference_type;
+ typedef std::ptrdiff_t difference_type;
typedef void * value_type;
protected:
@@ -993,7 +994,7 @@
private:
typedef base_atomic this_type;
typedef T * value_type;
- typedef ptrdiff_t difference_type;
+ typedef std::ptrdiff_t difference_type;
protected:
typedef value_type value_arg_type;
@@ -1114,7 +1115,7 @@
{
private:
typedef base_atomic this_type;
- typedef ptrdiff_t difference_type;
+ typedef std::ptrdiff_t difference_type;
typedef void * value_type;
protected:
@@ -1226,7 +1227,7 @@
private:
typedef base_atomic this_type;
typedef T * value_type;
- typedef ptrdiff_t difference_type;
+ typedef std::ptrdiff_t difference_type;
protected:
typedef value_type value_arg_type;
Modified: trunk/boost/atomic/detail/windows.hpp
==============================================================================
--- trunk/boost/atomic/detail/windows.hpp Sat Jul 20 13:20:02 2013 (r85089)
+++ trunk/boost/atomic/detail/windows.hpp 2013-07-20 13:46:48 EDT (Sat, 20 Jul 2013) (r85090)
@@ -9,6 +9,7 @@
// See accompanying file LICENSE_1_0.txt or copy at
// http://www.boost.org/LICENSE_1_0.txt)
+#include <string.h>
#include <cstddef>
#include <boost/cstdint.hpp>
#include <boost/type_traits/make_signed.hpp>
@@ -749,7 +750,7 @@
{
private:
typedef base_atomic this_type;
- typedef ptrdiff_t difference_type;
+ typedef std::ptrdiff_t difference_type;
typedef void* value_type;
protected:
@@ -844,7 +845,7 @@
private:
typedef base_atomic this_type;
typedef T* value_type;
- typedef ptrdiff_t difference_type;
+ typedef std::ptrdiff_t difference_type;
protected:
typedef value_type value_arg_type;
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