Closed MicBe closed 7 years ago
Hello,
Is it possible to assign metadata (like we can do for properties) to a type?
I would like to do something like this:
registration::class_("MyClass").metadata(UserFriendlyName, "My Class");
Thanks
Yes it is possible. Something like this should work:
registration::class_<MyClass>("MyClass")( metadata(UserFriendlyName, "My Class") );
http://www.rttr.org/doc/master/classrttr_1_1registration_1_1class__.html#a17d658b8d88ce353d0ad777d1b01a360
Thank you!
Hello,
Is it possible to assign metadata (like we can do for properties) to a type?
I would like to do something like this:
Thanks