Actions
Bug #664
closeddbo::ptr_tuple
Start date:
01/02/2011
Due date:
% Done:
0%
Estimated time:
Description
Look at this example in documentation:
session.query< boost::tuple<ptr<A>, ptr<B> >("select A, B from table_a A, table_b B").where("...");
It seems to be incorrect
1. template "<" and ">" mismatch
- according to test/dbo/DboTest.C, it should be "boost::tuple<A, B>"
Updated by Koen Deforche over 13 years ago
- Status changed from New to Feedback
Hey,
The ptr_tuple
may be more confusing than helping.
boost::tuple<dbo::ptr<A>, dbo::ptr<B> >
is the same as:
dbo::ptr_tuple<A, B>
The ptr_tuple
serves only to minimize the repeition of ptr<>
.
As far as I can see, only a '>' is missing in the documentation (good catch!).
It should read:
session.query< boost::tuple<ptr<A>, ptr<B> > >("select A, B from table_a A, table_b B").where("...");
Regards,
koen
Updated by Koen Deforche over 13 years ago
- Status changed from Feedback to Resolved
- Assignee set to Koen Deforche
Updated by Koen Deforche about 13 years ago
- Status changed from Resolved to Closed
Actions