Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> All I want is a generic function that takes a class as the generic type T, and a string as an argument, and returns me a completely filled in object of type T, or throws an error on malformed input.

Well, what you need is a way to enumerate the members of a class. Everything else is already done by something like Cereal or Boost.Serialization.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: