Boost logo

Boost :

Subject: Re: [boost] [atomic] errors since the introduction of constexpr noexcept.
From: Vicente J. Botet Escriba (vicente.botet_at_[hidden])
Date: 2013-02-17 08:01:56


Le 17/02/13 13:25, Tim Blechmann a écrit :
> hi vicente,
>
>> There are some errors since the introduction of constexpr noexcept.
>> Could you apply this patch?
> thanks for the patch! please commit yourself, except for this line in
> cas64strong.hpp:
> + int xxx;
>
>
yes, of course.

There are two more files that should need to be patched. Not tested
Should I commit them also?

svn diff boost/atomic/detail/cas32strong.hpp
boost/atomic/detail/cas32weak.hpp
Index: boost/atomic/detail/cas32strong.hpp
===================================================================
--- boost/atomic/detail/cas32strong.hpp (revision 82919)
+++ boost/atomic/detail/cas32strong.hpp (working copy)
@@ -35,7 +35,7 @@
      typedef T difference_type;
      typedef uint32_t storage_type;
  public:
- BOOST_CONSTEXPR base_atomic(atomic_type v) BOOST_NOEXCEPT: v_(v) {}
+ BOOST_CONSTEXPR base_atomic(value_type v) BOOST_NOEXCEPT: v_(v) {}
      base_atomic(void) {}

      void
@@ -162,7 +162,7 @@
      typedef T difference_type;
      typedef uint32_t storage_type;
  public:
- BOOST_CONSTEXPR base_atomic(atomic_type v) BOOST_NOEXCEPT: v_(v) {}
+ BOOST_CONSTEXPR base_atomic(value_type v) BOOST_NOEXCEPT: v_(v) {}
      base_atomic(void) {}

      void
@@ -288,7 +288,7 @@
      typedef T value_type;
      typedef T difference_type;
  public:
- BOOST_CONSTEXPR base_atomic(atomic_type v) BOOST_NOEXCEPT: v_(v) {}
+ BOOST_CONSTEXPR base_atomic(value_type v) BOOST_NOEXCEPT: v_(v) {}
      base_atomic(void) {}

      void
@@ -412,7 +412,7 @@
      typedef void * value_type;
      typedef ptrdiff_t difference_type;
  public:
- BOOST_CONSTEXPR base_atomic(atomic_type v) BOOST_NOEXCEPT: v_(v) {}
+ BOOST_CONSTEXPR base_atomic(value_type v) BOOST_NOEXCEPT: v_(v) {}
      base_atomic(void) {}

      void
@@ -507,7 +507,7 @@
      typedef T * value_type;
      typedef ptrdiff_t difference_type;
  public:
- BOOST_CONSTEXPR base_atomic(atomic_type v) BOOST_NOEXCEPT: v_(v) {}
+ BOOST_CONSTEXPR base_atomic(value_type v) BOOST_NOEXCEPT: v_(v) {}
      base_atomic(void) {}

      void
Index: boost/atomic/detail/cas32weak.hpp
===================================================================
--- boost/atomic/detail/cas32weak.hpp (revision 82919)
+++ boost/atomic/detail/cas32weak.hpp (working copy)
@@ -167,7 +167,7 @@
      typedef T difference_type;
      typedef uint32_t storage_type;
  public:
- BOOST_CONSTEXPR base_atomic(atomic_type v) BOOST_NOEXCEPT: v_(v) {}
+ BOOST_CONSTEXPR base_atomic(value_type v) BOOST_NOEXCEPT: v_(v) {}
      base_atomic(void) {}

      void
@@ -301,7 +301,7 @@
      typedef T value_type;
      typedef T difference_type;
  public:
- BOOST_CONSTEXPR base_atomic(atomic_type v) BOOST_NOEXCEPT: v_(v) {}
+ BOOST_CONSTEXPR base_atomic(value_type v) BOOST_NOEXCEPT: v_(v) {}
      base_atomic(void) {}

      void
@@ -433,7 +433,7 @@
      typedef void * value_type;
      typedef ptrdiff_t difference_type;
  public:
- BOOST_CONSTEXPR base_atomic(atomic_type v) BOOST_NOEXCEPT: v_(v) {}
+ BOOST_CONSTEXPR base_atomic(value_type v) BOOST_NOEXCEPT: v_(v) {}
      base_atomic(void) {}

      void
@@ -518,7 +518,7 @@
      typedef T * value_type;
      typedef ptrdiff_t difference_type;
  public:
- BOOST_CONSTEXPR base_atomic(atomic_type v) BOOST_NOEXCEPT: v_(v) {}
+ BOOST_CONSTEXPR base_atomic(value_type v) BOOST_NOEXCEPT: v_(v) {}
      base_atomic(void) {}

      void


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk