rttr icon indicating copy to clipboard operation
rttr copied to clipboard

C++ Reflection Library

Results 139 rttr issues
Sort by recently updated
recently updated
newest added

Hello, why is the destructor called twice for the first time? ``` class TestClass { public: TestClass() { printf("TestClass ctor\n"); } ~TestClass() { printf("~TestClass\n"); } }; RTTR_REGISTRATION { registration::class_("TestClass") .constructor()(policy::ctor::as_object)...

I've put together a few very simple functions for types and properties which allows the developer to run a lambda on each metadata entry. I've put in a few examples...

For the life of me, I cannot find a solution to obtain a list of explicitly registered classes. GetTypes() obtains a list of far more than I am looking for...

Hi! I have template class like `template class Ref { ''' }` is it possible to include argument type in type registration? like: `RTTR_REGISTRATION { rttr::registration::class_("Foo") ... }`

I'm seeing a pretty significant binary footprint for RTTR reflected objects (about half of the binary size). Were building RTTR from source within our tree and linking it in as...

As the current way have some restrictions considering namespaces and header only registrations I am proposing this way which doesn't have these restrictions. registration.h ``` #ifndef REFLECTION_REGISTRATION_H #define REFLECTION_REGISTRATION_H #include...

enhancement

I have a situation where I want to call a function via rttr reflection where one of the arguments is a pointer to a base class: ```method (shared_ptr, ...)``` Elsewhere...

I am attempting to build master on osx. It seems that the choice of flags used by the build are such that one of the unit tests does not compile:...

![image](https://user-images.githubusercontent.com/36259821/152829218-8f429fe8-eb68-4235-90f5-34221ffdce58.png) I'm using rttr with my project now, and I encounter this issue when I build. I found someone met similar [issues](https://github.com/Tencent/rapidjson/issues/1205), and I uses similar methods to solve it....

Hello, the following fails on VS 2019 using microsecDouble = std::chrono::duration; auto microsecDoubleType = ::rttr::type::get(); with foo.cpp c:\workspace\rttr\include\rttr/detail/type/type_data.h(331,1): error C2752: 'rttr::detail::template_type_trait': more than one partial specialization matches the template argument...