diff --git a/lib/serializer/CSerializer.h b/lib/serializer/CSerializer.h index 407c5bcc3..2e0d83731 100644 --- a/lib/serializer/CSerializer.h +++ b/lib/serializer/CSerializer.h @@ -99,7 +99,7 @@ public: return nullptr; else { - assert(!i->second.empty()); + assert(i->second.has_value()); #ifndef __APPLE__ assert(i->second.type() == typeid(VectorizedObjectInfo)); #endif