[odb-users] Avoid copying objects from odb::result

Boris Kolpackov boris at codesynthesis.com
Thu Jun 15 08:09:06 EDT 2017

aongeeno at openmailbox.org <aongeeno at openmailbox.org> writes:

> How I can avoid copying objects in this code?
> for (Category & c : r)
>     //categories[c.id] = std::make_unique(c); ???

This is described in the manual, specifically, Section 4.4, "Query Result".


More information about the odb-users mailing list