from Hacker News

Implementing a Struct of Arrays

by legobmw99 on 5/5/25, 3:50 PM with 1 comments

  • by legobmw99 on 5/5/25, 3:50 PM

    This is probably the most compelling example of C++ reflection I've seen yet. Deriving a debug printer or stringifying the names of enums is one thing, but this is clearly quite a powerful abstraction one could get 'for free'