Registry / serialization / rttr
library0.9.6vcpkgunverified

An easy and intuitive way to use reflection in C++.

vcpkg install rttr
INSTALL
IMPORT
SIG · RTTR
R
rttr
serializationcppv0.9.6
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

rttr/registration.h
✓ #include <rttr/registration.h>

Register a class with a property and access it via reflection.

#include <rttr/registration.h> #include <iostream> struct MyClass { int value = 42; }; RTTR_REGISTRATION { rttr::registration::class_<MyClass>("MyClass") .property("value", &MyClass::value); } int main() { MyClass obj; auto prop = rttr::type::get<MyClass>().get_property("value"); std::cout << prop.get_value(obj).to_int() << std::endl; return 0; }
Debug
Known issues
gotchaRTTR requires RTTI to be enabled in your compiler.
fix
Ensure compiler flags like -frtti (GCC/Clang) or /GR (MSVC) are set.
affects: *
Upgrade
Version history
0.9.6latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources

No resource links recorded.

rttr — pip install rttr · libregistry