rttr
rttr copied to clipboard
C++ Reflection Library
hi, I want to use invoke_variadic like this : std::vector args; for(int var = 0; var < 3; ++var) { args.push_back(var); } auto ret = meth.invoke_variadic(obj, args); then I found...
rttr version: master header the problem happens in centos 7 64bit, gcc: 4.8.5. works well in windows 7. for example, i register a type like this: ~~~cpp registration::class_("std::vector") .constructor() (...
Specifically, the way test classes are built does not work with the way libc++ creates shared ptrs. > /usr/include/c++/v1/memory:3710:5: error: destructor called on non-final 'ClassSingle6A' that has virtual functions but...
Hello acki-m, first of all, great work with this library, it works really well and covers lots of amazing features. Now to the point. I'm trying to implement a dll...
I have 2 struct definitions: ~~~C++ typedef struct { int a; int b; }A; typedef struct { A stA; int c; int d; }B; ~~~ I try to register struct...
registration: ~~~cpp registration::class_("std::vector") .constructor() ( policy::ctor::as_raw_ptr ).constructor() ( policy::ctor::as_raw_ptr, default_arguments((char *)NULL) ); ~~~ element assignment ~~~cpp type charPtrArray = type::get_by_name("std::vector"); auto charPtrArrayInst = charPtrArray.create({ size +1 }); // size is...
Can we usw std::string_view instead of rttr::string_view? Make an option in the cmake to compile the whole library useing std::string_view or provide a non-explicit constructor which takes a std::string_view? Can...
i have already registered like this: ~~~ registration::class_("std::vector") .constructor() ( policy::ctor::as_std_shared_ptr ); ~~~ and then i created a vector and assign each element like this: ~~~ type charPtrArray = type::get_by_name("std::vector");...
I really like being able to bind fields of a struct as properties using the `as_reference_wrapper` policy. However, it's pretty cumbersome to set property values as I need an explicit...
what i expected: 1.`rttr` can reflect normal C struct correctly, 2. `rttr` can create an instance of a struct and memory block to hold struct data is continuous and `rttr`...