|
Boost : |
Subject: Re: [boost] [atomic] ia32/cmpxchg8b fix
From: Helge Bahmann (hcb_at_[hidden])
Date: 2012-09-09 14:36:54
On Friday 07 September 2012 15:05:05 Tim Blechmann wrote:
> one of my users reported an issue with atomic on gcc/ia32, related to
> const-correctness.
>
> ok to commit this fix?
[snip]
> --- boost/atomic/detail/gcc-x86.hpp (revision 80433)
> +++ boost/atomic/detail/gcc-x86.hpp (working copy)
> @@ -1556,11 +1556,11 @@
>
> template<typename T>
> T
> -platform_load64(volatile T * ptr)
> +platform_load64(const volatile T * ptr)
> {
> T expected = *ptr;
yes, looks both correct and necessary
regards
Helge
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk