Project

General

Profile

Actions

Bug #664

closed

dbo::ptr_tuple

Added by Boris Nagaev over 13 years ago. Updated about 13 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
-
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("...");

http://www.webtoolkit.eu/wt/doc/reference/html/classWt_1_1Dbo_1_1Session.html#a8712ff0d59f7bb6a4d2986ad9637cc9e

It seems to be incorrect

1. template "<" and ">" mismatch

  1. according to test/dbo/DboTest.C, it should be "boost::tuple<A, B>"
Actions #1

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

Actions #2

Updated by Koen Deforche over 13 years ago

  • Status changed from Feedback to Resolved
  • Assignee set to Koen Deforche
Actions #3

Updated by Koen Deforche about 13 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF