From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2181) id E7BFC3858402; Fri, 24 Sep 2021 14:47:03 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org E7BFC3858402 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Jonathan Wakely To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r12-3879] libstdc++: Remove redundant 'inline' specifiers X-Act-Checkin: gcc X-Git-Author: Jonathan Wakely X-Git-Refname: refs/heads/master X-Git-Oldrev: 710c6ab4ad502cddc8bdf82c95f580fa94fbf9fb X-Git-Newrev: 9b11107ed72ca543af41dbb3226e16b61d31b098 Message-Id: <20210924144703.E7BFC3858402@sourceware.org> Date: Fri, 24 Sep 2021 14:47:03 +0000 (GMT) X-BeenThere: libstdc++-cvs@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libstdc++-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Sep 2021 14:47:04 -0000 https://gcc.gnu.org/g:9b11107ed72ca543af41dbb3226e16b61d31b098 commit r12-3879-g9b11107ed72ca543af41dbb3226e16b61d31b098 Author: Jonathan Wakely Date: Fri Sep 24 11:30:59 2021 +0100 libstdc++: Remove redundant 'inline' specifiers These functions are constexpr, which means they are implicitly inline. Signed-off-by: Jonathan Wakely libstdc++-v3/ChangeLog: * include/bits/range_access.h (cbegin, cend): Remove redundant 'inline' specifier. Diff: --- libstdc++-v3/include/bits/range_access.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libstdc++-v3/include/bits/range_access.h b/libstdc++-v3/include/bits/range_access.h index ab2d4f8652c..3dec687dd94 100644 --- a/libstdc++-v3/include/bits/range_access.h +++ b/libstdc++-v3/include/bits/range_access.h @@ -122,7 +122,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION */ template [[__nodiscard__]] - inline constexpr auto + constexpr auto cbegin(const _Container& __cont) noexcept(noexcept(std::begin(__cont))) -> decltype(std::begin(__cont)) { return std::begin(__cont); } @@ -134,7 +134,7 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION */ template [[__nodiscard__]] - inline constexpr auto + constexpr auto cend(const _Container& __cont) noexcept(noexcept(std::end(__cont))) -> decltype(std::end(__cont)) { return std::end(__cont); }