From ccf3698776c7d66f2cbd905b2fab9c36792bb311 Mon Sep 17 00:00:00 2001 From: nikitalita <69168929+nikitalita@users.noreply.github.com> Date: Tue, 11 Mar 2025 09:01:09 -0700 Subject: [PATCH] dap: rename free method to freeValue to avoid running afoul of macro defs --- libraries/cppdap/include/dap/any.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/cppdap/include/dap/any.h b/libraries/cppdap/include/dap/any.h index b05f03d457..e799c44cca 100644 --- a/libraries/cppdap/include/dap/any.h +++ b/libraries/cppdap/include/dap/any.h @@ -67,7 +67,7 @@ class any { static inline void* alignUp(void* val, size_t alignment); inline void alloc(size_t size, size_t align); - inline void free(); + inline void freeValue(); inline bool isInBuffer(void* ptr) const; void* value = nullptr; @@ -106,7 +106,7 @@ any::any(any&& other) noexcept : type(other.type) { void any::reset() { if (value != nullptr) { type->destruct(value); - free(); + freeValue(); } value = nullptr; type = nullptr; @@ -191,7 +191,7 @@ void any::alloc(size_t size, size_t align) { value = alignUp(heap, align); } -void any::free() { +void any::freeValue() { assert(value != nullptr); if (heap != nullptr) { delete[] reinterpret_cast(heap);