▲ | Chaosvex 14 days ago | |
Thanks, that is definitely a downside to the shift operator overloading approach. I'll take that onboard and investigate whether a single operator to handle both would mesh with the current design. | ||
▲ | jcelerier 14 days ago | parent | next [-] | |
You can just use the boost.pfr technique to iterate fields though. Or if you want, starting from C++26 and e.g. clang-21: https://gcc.godbolt.org/z/G1TqP3a8P
or with boost.pfr as a polyfill until then, which allows to do this back to C++14 | ||
▲ | lionkor 14 days ago | parent | prev [-] | |
like boost serialize, which overloads the & operator |