log如下,level.reflection.gen.h 26行报错,=号两边 ‘std::vector<Pilot::ObjectInstanceRes>’ 和 ‘int’不匹配,是什么问题?
[ 55%] Building CXX object engine/source/runtime/CMakeFiles/PilotRuntime.dir/core/meta/meta_example.cpp.obj
[ 56%] Building CXX object engine/source/runtime/CMakeFiles/PilotRuntime.dir/core/meta/reflection/reflection.cpp.obj
[ 56%] Building CXX object engine/source/runtime/CMakeFiles/PilotRuntime.dir/core/meta/reflection/reflection_register.cpp.obj
In file included from E:/opengl/games104/Piccolo-games104-homework01-build/engine/source/_generated/reflection/all_reflection.h:4,
from E:\opengl\games104\Piccolo-games104-homework01-build\engine\source\runtime\core\meta\reflection\reflection_register.cpp:8:
E:/opengl/games104/Piccolo-games104-homework01-build/engine/source/_generated/reflection/level.reflection.gen.h: In static member function ‘static void Pilot::Reflection::TypeFieldReflectionOparator::TypeLevelResOperator::set_m_objects(void*, void*)’:
E:/opengl/games104/Piccolo-games104-homework01-build/engine/source/_generated/reflection/level.reflection.gen.h:26:146:
error: no match for ‘operator=’ (operand types are ‘std::vector<Pilot::ObjectInstanceRes>’ and ‘int’)
26 | static void set_m_objects(void* instance, void* field_value){ static_cast<LevelRes*>(instance)->m_objects = *static_cast<int*>(field_value);}
|