2
0
Эх сурвалжийг харах

CSerializer: fix any_cast

Konstantin 2 жил өмнө
parent
commit
4a79e2ccd9

+ 1 - 1
lib/serializer/CSerializer.h

@@ -103,7 +103,7 @@ public:
 #ifndef __APPLE__
 			assert(i->second.type() == typeid(VectorizedObjectInfo<T, U>));
 #endif
-			VectorizedObjectInfo<T, U> *ret = std::any_cast<VectorizedObjectInfo<T, U>*>(i->second);
+			auto *ret = std::any_cast<VectorizedObjectInfo<T, U>>(&i->second);
 			return ret;
 		}
 	}