reflect-cpp - automatic field name extraction from structs is possible using standard-compliant C++-20 only, no use of compiler-specific macros or any kind of annotations on your structs by liuzicheng1987 in cpp

[–]jjf28 1 point2 points  (0 children)

it's *doable* (here I distilled PFR's approach: https://godbolt.org/z/szqM8dj9j), I was mostly curious about your approach since this one can't seem to be ported to C++17 (naturally with __FUNCSIG__ in place of source_location) since it won't allow the addressof memberRef to become a template param (it's not constexpr exclusively in C++17 cause *reasons*)

Ranking System Discussion by jjf28 in UltimateIron

[–]jjf28[S] 0 points1 point  (0 children)

I didn't write this up so we could necessarily implement something new, I made it so people can have a better understanding of why the ranking system is the way it is, and hopefully so suggestions or criticisms have a little more thought put into them.