[soci-users] Passing parent objects to type_conversion structs

2012-11-14 Thread doug livesey
Hi -- I'm trying to implement persistence with SOCI in a C++ project I'm working on, but am coming a little unstuck when saving models that need to know their parent's id for persistence. Which is most of the objects! I've tried creating a std::pair (with child and parent domain classes) specialisa

Re: [soci-users] Passing parent objects to type_conversion structs

2012-11-15 Thread doug livesey
he same position. I'll have a think on it, but these things are never as easy in static languages! :) And thanks again for your suggestions, Doug. On 14 November 2012 21:58, Mateusz Loskot wrote: > On 14 November 2012 19:04, doug livesey wrote: > > Hi -- I'm trying t

Re: [soci-users] Passing parent objects to type_conversion structs

2012-11-15 Thread doug livesey
t; On 15 November 2012 09:12, doug livesey wrote: > > I'm not entirely sure what you mean in your third suggestion -- is that a > > continuation of your first (ie., create two containing types, const and > > non-const, and specialise for them)? Or am I missing something there? &g