Yeah, I've written such a thing many times as well, in languages like Go which make it easy and languages like C which make it not-as-easy and a few in between.
I was more curious if there was a cleaner C++ way of doing it with all of the recent or pending languages changes.
I was more curious if there was a cleaner C++ way of doing it with all of the recent or pending languages changes.