about summary refs log tree commit diff homepage
diff options
context:
space:
mode:
authorDaniel Schemmel <daniel@schemmel.net>2023-10-17 12:05:22 +0100
committerCristian Cadar <c.cadar@imperial.ac.uk>2023-10-23 23:35:51 +0300
commitfc83f06b17221bf5ef20e30d9da1ccff927beb17 (patch)
treee6b93f0cafb278d42073fe7e1c97c3b955a2344d
parent9edf8e8bba51f2d217ead0a9b2469b0b551ad255 (diff)
downloadklee-fc83f06b17221bf5ef20e30d9da1ccff927beb17.tar.gz
replace deprecated (as of c++20) std::is_pod with std::trivial && std::is_standard_layout
-rw-r--r--include/klee/KDAlloc/suballocators/slot_allocator.h15
1 files 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<bool UnlimitedQuarantine>
-class SlotAllocator;
+template <bool UnlimitedQuarantine> class SlotAllocator;
 
 struct Data final {
   /// The reference count.
@@ -51,8 +50,7 @@ struct Data final {
 };
 
 class Control final : public TaggedLogger<Control> {
-  template<bool UnlimitedQuarantine>
-  friend class SlotAllocator;
+  template <bool UnlimitedQuarantine> 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<false> final : public TaggedLogger<SlotAllocator<false>> {
   static_assert(static_cast<std::size_t>(-1) == ~static_cast<std::size_t>(0),
                 "-1 must be ~0 for size_t");
 
-  static_assert(std::is_pod<Data>::value, "Data must be POD");
+  static_assert(std::is_trivial<Data>::value &&
+                    std::is_standard_layout<Data>::value,
+                "Data must be POD");
 
   Data *data = nullptr;
 
@@ -533,8 +533,7 @@ public:
   }
 };
 
-
-template<>
+template <>
 class SlotAllocator<true> final : public TaggedLogger<SlotAllocator<true>> {
   std::size_t next;