diff --git a/main.cpp b/main.cpp index 84ecfee..c2da7f7 100644 --- a/main.cpp +++ b/main.cpp @@ -5,16 +5,19 @@ class Demo :public CTL::Object{ public: int a = 0; std::string b; + std::vector c; }; CC_Register_CLASS(Demo); CC_Register_INFO(Demo, a); CC_Register_INFO(Demo, b); +CC_Register_INFO(Demo, c); int main() { const auto factory = CTL::ClassFactory::getInstance(); const auto a = factory->create_class("Demo"); - a->set("a",2); - const auto as = a->get("a"); + std::vector l = {0,1,2,3,4}; + a->set("c",l); + const auto as = a->get>("c"); return 0; }