From fc83f06b17221bf5ef20e30d9da1ccff927beb17 Mon Sep 17 00:00:00 2001 From: Daniel Schemmel Date: Tue, 17 Oct 2023 12:05:22 +0100 Subject: replace deprecated (as of c++20) std::is_pod with std::trivial && std::is_standard_layout --- include/klee/KDAlloc/suballocators/slot_allocator.h | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/include/klee/KDAlloc/suballocators/slot_allocator.h b/include/klee/KDAlloc/suballocators/slot_allocator.h index 1d0d42a8..9be5d2df 100644 --- a/include/klee/KDAlloc/suballocators/slot_allocator.h +++ b/include/klee/KDAlloc/suballocators/slot_allocator.h @@ -25,8 +25,7 @@ namespace klee::kdalloc::suballocators { namespace slotallocator { -template -class SlotAllocator; +template class SlotAllocator; struct Data final { /// The reference count. @@ -51,8 +50,7 @@ struct Data final { }; class Control final : public TaggedLogger { - template - friend class SlotAllocator; + template friend class SlotAllocator; /// pointer to the start of the range managed by this allocator char *baseAddress = nullptr; @@ -161,12 +159,14 @@ public: } }; -template<> +template <> class SlotAllocator final : public TaggedLogger> { static_assert(static_cast(-1) == ~static_cast(0), "-1 must be ~0 for size_t"); - static_assert(std::is_pod::value, "Data must be POD"); + static_assert(std::is_trivial::value && + std::is_standard_layout::value, + "Data must be POD"); Data *data = nullptr; @@ -533,8 +533,7 @@ public: } }; - -template<> +template <> class SlotAllocator final : public TaggedLogger> { std::size_t next; -- cgit 1.4.1