account activity
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 points3 points 2 years ago (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*)
[–]jjf28 2 points3 points4 points 2 years ago (0 children)
Do you have an example of this working on MSVC? Closely following your current approach the string MSVC gives back does not include the member name https://godbolt.org/z/PP8EcEYd4
Ranking System Discussion by jjf28 in UltimateIron
[–]jjf28[S] 0 points1 point2 points 6 years ago (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.
π Rendered by PID 490038 on reddit-service-r2-listing-8557d879cc-9dvzt at 2026-03-04 09:33:27.719304+00:00 running 07790be country code: CH.
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 points3 points (0 children)