public inbox for libstdc++-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-3879] libstdc++: Remove redundant 'inline' specifiers
@ 2021-09-24 14:47 Jonathan Wakely
  0 siblings, 0 replies; only message in thread
From: Jonathan Wakely @ 2021-09-24 14:47 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:9b11107ed72ca543af41dbb3226e16b61d31b098

commit r12-3879-g9b11107ed72ca543af41dbb3226e16b61d31b098
Author: Jonathan Wakely <jwakely@redhat.com>
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 <jwakely@redhat.com>
    
    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<typename _Container>
     [[__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<typename _Container>
     [[__nodiscard__]]
-    inline constexpr auto
+    constexpr auto
     cend(const _Container& __cont) noexcept(noexcept(std::end(__cont)))
       -> decltype(std::end(__cont))
     { return std::end(__cont); }


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-09-24 14:47 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-24 14:47 [gcc r12-3879] libstdc++: Remove redundant 'inline' specifiers Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).