I've used a bit of metaprogramming (with metal and pfr) + Converting Tuple to string to map a c++ pod struct into its equivalent python struct representation (padding not accounted for yet but this is a separate step)
So my questions is, how can I do this better? I'm ok moving forward with this but it seems there must be some way I can simplify this code. Any suggestions?
Code here: https://github.com/Kubiyak/pybuffer_container/blob/master/meta_example.cpp