r/cpp • u/_bstaletic • Jun 21 '26
Pymetabind: Writing pybind11 bindings with C++26 reflections
https://codeberg.org/bstaletic/pymetabind/
81
Upvotes
r/cpp • u/_bstaletic • Jun 21 '26
View all comments
2
u/friedkeenan Jun 21 '26 edited Jun 21 '26
Looks like it came out nice :)
Is there any particular reason you're doing your annotations like
[[=pymetabind::annotate::name<"different_name">()]]instead of something more like[[=pymetabind::annotate::name("different name")]]? Since annotations are just (structural) values I think it should be okay to do the latter. But maybe there's some API reason I'm not grasping.