atomic_base.h (__atomic_base<_PTp*>::_M_type_size): Add const to constexpr member functions.
* include/bits/atomic_base.h (__atomic_base<_PTp*>::_M_type_size): Add const to constexpr member functions. From-SVN: r209427
This commit is contained in:
parent
dfe449d152
commit
260d16c8ca
2 changed files with 5 additions and 2 deletions
|
@ -12,6 +12,9 @@
|
|||
from the callable checks.
|
||||
* testsuite/20_util/function/60594.cc: New.
|
||||
|
||||
* include/bits/atomic_base.h (__atomic_base<_PTp*>::_M_type_size): Add
|
||||
const to constexpr member functions.
|
||||
|
||||
2014-04-14 Jonathan Wakely <jwakely@redhat.com>
|
||||
|
||||
* include/bits/stl_vector.h (_Vector_base::_Vector_impl,
|
||||
|
|
|
@ -675,10 +675,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
|
|||
|
||||
// Factored out to facilitate explicit specialization.
|
||||
constexpr ptrdiff_t
|
||||
_M_type_size(ptrdiff_t __d) { return __d * sizeof(_PTp); }
|
||||
_M_type_size(ptrdiff_t __d) const { return __d * sizeof(_PTp); }
|
||||
|
||||
constexpr ptrdiff_t
|
||||
_M_type_size(ptrdiff_t __d) volatile { return __d * sizeof(_PTp); }
|
||||
_M_type_size(ptrdiff_t __d) const volatile { return __d * sizeof(_PTp); }
|
||||
|
||||
public:
|
||||
__atomic_base() noexcept = default;
|
||||
|
|
Loading…
Add table
Reference in a new issue