From a768276bb6f73c20d90a09b769541b4ee4d87fc8 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Thu, 20 Feb 2025 22:55:31 +0900 Subject: [PATCH] common: ++portablity MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit fix a error call of ambiguous overloaded ‘free(void*&)’ --- src/renderer/tvgCommon.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/renderer/tvgCommon.h b/src/renderer/tvgCommon.h index baff8e50..09f12393 100644 --- a/src/renderer/tvgCommon.h +++ b/src/renderer/tvgCommon.h @@ -114,6 +114,7 @@ namespace tvg { return static_cast(std::realloc(ptr, size)); } + template static inline void free(void* ptr) { std::free(ptr);