diff --git a/libsrc/core/archive.hpp b/libsrc/core/archive.hpp index ac77db50..29504ec0 100644 --- a/libsrc/core/archive.hpp +++ b/libsrc/core/archive.hpp @@ -336,7 +336,7 @@ namespace ngcore // if the pointer is null store -2 if (!p) return (*this) << -2; - void* reg_ptr = static_cast(p); + auto reg_ptr = static_cast(p); if(typeid(T) != typeid(*p)) { if(!IsRegistered(Demangle(typeid(*p).name())))