diff --git a/lib/serializer/CSerializer.h b/lib/serializer/CSerializer.h index 9d9e594bf..407c5bcc3 100644 --- a/lib/serializer/CSerializer.h +++ b/lib/serializer/CSerializer.h @@ -103,7 +103,7 @@ public: #ifndef __APPLE__ assert(i->second.type() == typeid(VectorizedObjectInfo)); #endif - VectorizedObjectInfo *ret = std::any_cast*>(i->second); + auto *ret = std::any_cast>(&i->second); return ret; } }