3 ms·
Compile time reflection doesn't work for this case.
by lostdog 3y ago
Compile time reflection doesn't work for this case.
- pjmlp 3y agoTemplate metaprogramming techniques as poor man's reflection prove otherwise. Additionally that is one of the examples on the ongoing C++ reflection papers. Then there are a couple of examples in D, Common Lisp, Scheme, C# code generators.
- lostdog 3y agoNo? A JSON object could have any type at run time. You cannot do anything at compile time to figure out the right type. Please point to a specific library if you disagree.