fix auto use

This commit is contained in:
Christopher Lackner 2018-12-12 15:35:19 +01:00
parent 08275457c7
commit fe2a5b382d

View File

@ -336,7 +336,7 @@ namespace ngcore
// if the pointer is null store -2
if (!p)
return (*this) << -2;
void* reg_ptr = static_cast<void*>(p);
auto reg_ptr = static_cast<void*>(p);
if(typeid(T) != typeid(*p))
{
if(!IsRegistered(Demangle(typeid(*p).name())))