Open Linhuihang opened 2 years ago
#include <rttr/registration> struct MyStruct { MyStruct() {}; int data[3]; }; RTTR_REGISTRATION { using namespace rttr; registration::class_<MyStruct>("MyStruct") .constructor<>() .property("data", &MyStruct::data); } int main() { return 0; }
Compile error: error C2668: 'operator new[]': ambiguous call to overloaded function
For one thing, your MyStruct needs RTTR_ENABLE(); in the declaration:
MyStruct
RTTR_ENABLE();
struct MyStruct { MyStruct() {} int data[3]; RTTR_ENABLE(); };
Compile error: error C2668: 'operator new[]': ambiguous call to overloaded function