From af2a93f414cf7710c5ccb5d3f2b92090f0af4c17 Mon Sep 17 00:00:00 2001 From: Navin P Date: Mon, 6 Mar 2023 12:34:59 +0530 Subject: [PATCH] gcc-13 rebind compile failures fix https://gcc.gnu.org/bugzilla/show_bug.cgi?id=72792#c7 Formatting fix --- tests/src/unit-allocator.cpp | 5 +++-- tests/src/unit-regression2.cpp | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/tests/src/unit-allocator.cpp b/tests/src/unit-allocator.cpp index ee9702295..764809a7c 100644 --- a/tests/src/unit-allocator.cpp +++ b/tests/src/unit-allocator.cpp @@ -21,8 +21,9 @@ struct bad_allocator : std::allocator using std::allocator::allocator; template - struct rebind { - using other = bad_allocator; + struct rebind + { + using other = bad_allocator; }; template diff --git a/tests/src/unit-regression2.cpp b/tests/src/unit-regression2.cpp index 454e8d7a8..69e23b0b8 100644 --- a/tests/src/unit-regression2.cpp +++ b/tests/src/unit-regression2.cpp @@ -188,8 +188,9 @@ template class my_allocator : public std::allocator { template - struct rebind { - using other = my_allocator; + struct rebind + { + using other = my_allocator; }; public: