浏览代码

CSerializer: fix debug assertion

Fix compilation in debug mode
Konstantin P 2 年之前
父节点
当前提交
7c4badc890
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      lib/serializer/CSerializer.h

+ 1 - 1
lib/serializer/CSerializer.h

@@ -99,7 +99,7 @@ public:
 			return nullptr;
 			return nullptr;
 		else
 		else
 		{
 		{
-			assert(!i->second.empty());
+			assert(i->second.has_value());
 #ifndef __APPLE__
 #ifndef __APPLE__
 			assert(i->second.type() == typeid(VectorizedObjectInfo<T, U>));
 			assert(i->second.type() == typeid(VectorizedObjectInfo<T, U>));
 #endif
 #endif