From 3a5175e45ad9c04378fd0c34edf687c4b5f0fb35 Mon Sep 17 00:00:00 2001 From: Romain Boman <romain.boman@gmail.com> Date: Wed, 23 Mar 2022 14:45:59 +0100 Subject: [PATCH] fix AppleClang 13.0.0.13000029 compatibility --- tbox/src/wLazy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tbox/src/wLazy.h b/tbox/src/wLazy.h index 3d8e797..ae5568d 100644 --- a/tbox/src/wLazy.h +++ b/tbox/src/wLazy.h @@ -41,7 +41,7 @@ public: Lazy(int _np) : value(), np(_np) {} ~Lazy() { - delete value; + delete static_cast<T *>(value); //std::cout << "lazy pointer deleted\n"; } T &get() -- GitLab