From 6121fc52cf9d29bcd6a599c9390c4774fb626de6 Mon Sep 17 00:00:00 2001 From: Niels Lohmann Date: Fri, 10 Apr 2020 13:22:58 +0200 Subject: [PATCH] :art: fix indentation --- test/src/unit-allocator.cpp | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/test/src/unit-allocator.cpp b/test/src/unit-allocator.cpp index 5d48b2ea6..803d58652 100644 --- a/test/src/unit-allocator.cpp +++ b/test/src/unit-allocator.cpp @@ -245,12 +245,13 @@ struct allocator_no_forward : std::allocator allocator_no_forward(allocator_no_forward) {} template - struct rebind { + struct rebind + { using other = allocator_no_forward; }; template - void construct(T* p, const Args&... args) + void construct(T* p, const Args& ... args) { // force copy even if move is available ::new (static_cast(p)) T(args...); @@ -263,16 +264,16 @@ TEST_CASE("bad my_allocator::construct") SECTION("my_allocator::construct doesn't forward") { using bad_alloc_json = nlohmann::basic_json; + std::vector, + std::string, + bool, + std::int64_t, + std::uint64_t, + double, + allocator_no_forward>; - bad_alloc_json json; - json["test"] = bad_alloc_json::array_t(); - json["test"].push_back("should not leak"); + bad_alloc_json json; + json["test"] = bad_alloc_json::array_t(); + json["test"].push_back("should not leak"); } }