Registry / utility / boost-describe

boost-describe

JSON →
library1.90.0vcpkgunverified

A C++ library for describing structs and enums with compile-time reflection.

vcpkg install boost-describe
INSTALL
IMPORT
SIG · BOOST-DESCRIBE
B
boost-describe
utilitycppv1.90.0
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.

boost/describe.hpp
#include <boost/describe.hpp>

Iterates over struct members using Boost.Describe reflection.

#include <boost/describe.hpp> #include <iostream> BOOST_DESCRIBE_STRUCT(Point, (), (x, y)) struct Point { int x, y; }; int main() { Point p{1, 2}; boost::describe::for_each_member(p, [](auto& member, const char* name) { std::cout << name << ": " << member << std::endl; }); return 0; }
Debug
Known issues
gotchaRequires C++14 or later; macro-based registration needed for each struct/enum.
fix
Use BOOST_DESCRIBE_STRUCT or BOOST_DESCRIBE_ENUM macros.
affects: all
Upgrade
Version history
1.90.0latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Meta
1
Resources

No resource links recorded.

boost-describe — pip install boost-describe · libregistry