]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Remove redundant 'inline' specifiers
authorJonathan Wakely <jwakely@redhat.com>
Fri, 24 Sep 2021 10:30:59 +0000 (11:30 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Fri, 24 Sep 2021 14:38:44 +0000 (15:38 +0100)
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.

libstdc++-v3/include/bits/range_access.h

index ab2d4f8652c329544de8bad784a572f3b35dd4de..3dec687dd94ed23f6f2de7ceff6f7b742164a17c 100644 (file)
@@ -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); }