]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
libstdc++: Fix indentation in allocator base classes
authorJonathan Wakely <jwakely@redhat.com>
Tue, 14 Jun 2022 13:50:49 +0000 (14:50 +0100)
committerJonathan Wakely <jwakely@redhat.com>
Wed, 3 Aug 2022 11:30:26 +0000 (12:30 +0100)
libstdc++-v3/ChangeLog:

* include/bits/new_allocator.h: Fix indentation.
* include/ext/malloc_allocator.h: Likewise.

(cherry picked from commit 29da01709facbcc7efef4fd6767660d417f44531)

libstdc++-v3/include/bits/new_allocator.h
libstdc++-v3/include/ext/malloc_allocator.h

index 20ef20fe118af1778bda9b6a4c9efcd7f6de3369..99f7a2ee51e3a1d54f89904883be7da93690c50b 100644 (file)
@@ -112,9 +112,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
       allocate(size_type __n, const void* = static_cast<const void*>(0))
       {
 #if __cplusplus >= 201103L
-        // _GLIBCXX_RESOLVE_LIB_DEFECTS
-        // 3308. std::allocator<void>().allocate(n)
-        static_assert(sizeof(_Tp) != 0, "cannot allocate incomplete types");
+       // _GLIBCXX_RESOLVE_LIB_DEFECTS
+       // 3308. std::allocator<void>().allocate(n)
+       static_assert(sizeof(_Tp) != 0, "cannot allocate incomplete types");
 #endif
 
        if (__builtin_expect(__n > this->_M_max_size(), false))
index b61e9a85bb25086e7d330f44eb67985983e52160..82b3f0a1c6feecdccfbbe675686c729140d67320 100644 (file)
@@ -103,9 +103,9 @@ _GLIBCXX_BEGIN_NAMESPACE_VERSION
       allocate(size_type __n, const void* = 0)
       {
 #if __cplusplus >= 201103L
-        // _GLIBCXX_RESOLVE_LIB_DEFECTS
-        // 3308. std::allocator<void>().allocate(n)
-        static_assert(sizeof(_Tp) != 0, "cannot allocate incomplete types");
+       // _GLIBCXX_RESOLVE_LIB_DEFECTS
+       // 3308. std::allocator<void>().allocate(n)
+       static_assert(sizeof(_Tp) != 0, "cannot allocate incomplete types");
 #endif
 
        if (__builtin_expect(__n > this->_M_max_size(), false))