
"Brock Peabody" <brock.peabody@npcinternational.com> writes:
2) With this done it's not too hard to write a non-intrusive DSEL for binding on top of it. I wrote one that supports dependent tables, automatic mapping to STL containers, boost::optional, and common data types like boost::posix_time::ptime. A simple example of the language might look like:
table("customer") [
*field("id") = &customer::id, field("name") = &customer::name, field("number") = &customer::number,
table("tax_exempt")[
-field("customer"), field("state_id") = &tax_exempt_data::state_id ] = &customer::tax_exempt ];
This feels like it has some overlap with the serialization library. No? -- Dave Abrahams Boost Consulting www.boost-consulting.com