News for hackers. Stuff that matters.
Re:Libnop: C++ Native Object Protocols by coreytabaka on Saturday October 06, 2018 @03:05AM (#18153951)
Yes! Hopefully C++20 or C++25-ish will provide better alternatives for compile-time reflection.

Don't forget that libnop also has NOP_EXTERNAL_STRUCTURE (and friends) to decouple the annotation from the structure definition. This is handy when you have a C ABI with C++ internal implementation. I don't recall seeing a similar facility in other libraries.

Re:Libnop: C++ Native Object Protocols by nly on Sunday October 07, 2018 @07:06PM (#18163109)
Most of the above macros work this way. Boost fusions macro will let you specify arbitrary code for getting and setting attributes.