From: Paolo Carlini Date: Tue, 8 Nov 2011 00:49:47 +0000 (+0000) Subject: complex (complex<>::real(), [...]): Remove redundant const qualifiers. X-Git-Tag: releases/gcc-4.7.0~2370 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=31de4ba7df55baed9c84dfada4ef167cb9749760;p=thirdparty%2Fgcc.git complex (complex<>::real(), [...]): Remove redundant const qualifiers. 2011-11-07 Paolo Carlini * include/std/complex (complex<>::real(), complex<>::imag()): Remove redundant const qualifiers. From-SVN: r181141 --- diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog index 5f4160640e39..6f0ca3839b63 100644 --- a/libstdc++-v3/ChangeLog +++ b/libstdc++-v3/ChangeLog @@ -1,4 +1,9 @@ -2011-11-08 Jonathan Wakely +2011-11-07 Paolo Carlini + + * include/std/complex (complex<>::real(), complex<>::imag()): + Remove redundant const qualifiers. + +2011-11-07 Jonathan Wakely * include/bits/ptr_traits.h (__rebind): Replace with... (rebind): Implement using alias-declaration. diff --git a/libstdc++-v3/include/std/complex b/libstdc++-v3/include/std/complex index d74234338035..1ab016e659a9 100644 --- a/libstdc++-v3/include/std/complex +++ b/libstdc++-v3/include/std/complex @@ -142,10 +142,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // _GLIBCXX_RESOLVE_LIB_DEFECTS // DR 387. std::complex over-encapsulated. constexpr _Tp - real() const { return _M_real; } + real() { return _M_real; } constexpr _Tp - imag() const { return _M_imag; } + imag() { return _M_imag; } #else /// Return real part of complex number. _Tp& @@ -1062,10 +1062,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // _GLIBCXX_RESOLVE_LIB_DEFECTS // DR 387. std::complex over-encapsulated. constexpr float - real() const { return __real__ _M_value; } + real() { return __real__ _M_value; } constexpr float - imag() const { return __imag__ _M_value; } + imag() { return __imag__ _M_value; } #else float& real() { return __real__ _M_value; } @@ -1211,10 +1211,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // _GLIBCXX_RESOLVE_LIB_DEFECTS // DR 387. std::complex over-encapsulated. constexpr double - real() const { return __real__ _M_value; } + real() { return __real__ _M_value; } constexpr double - imag() const { return __imag__ _M_value; } + imag() { return __imag__ _M_value; } #else double& real() { return __real__ _M_value; } @@ -1361,10 +1361,10 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION // _GLIBCXX_RESOLVE_LIB_DEFECTS // DR 387. std::complex over-encapsulated. constexpr long double - real() const { return __real__ _M_value; } + real() { return __real__ _M_value; } constexpr long double - imag() const { return __imag__ _M_value; } + imag() { return __imag__ _M_value; } #else long double& real() { return __real__ _M_value; }