On 20 March 2014 17:57, Pawel Aleksander Fedorynski <[email protected]> wrote:
>
> Hello Benedikt,
>
> Passing an object as a parameter or return value of a function makes a copy
> of that object. The soci::session is non-copyable, ie, the copy constructor
> is made private to prevent the users from doing that. You can pass around a
> pointer or a reference to it though.
>
> Not sure about the reasoning behind this decision, cc-ing soci-users maybe
> someone from that list can shed some light on it.

No idea what is the reasoning behind, but I guess session was designed
similarly to streams, as a resource.

Best regards,
-- 
Mateusz  Łoskot, http://mateusz.loskot.net

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to