diff --git a/tbox/src/wLazy.h b/tbox/src/wLazy.h index 3d8e7970c66ddc53361d7f6b831436251ba88d59..ae5568d44ea457a8d074f9d1795ef85d27d22826 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()