From fe2a5b382d44830fec17ec1084dbd92538d06c14 Mon Sep 17 00:00:00 2001 From: Christopher Lackner Date: Wed, 12 Dec 2018 15:35:19 +0100 Subject: [PATCH] fix auto use --- libsrc/core/archive.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())))