|
Boost : |
From: Dean Michael Berris (mikhailberis_at_[hidden])
Date: 2006-10-05 02:32:40
Hi Steve!
On 10/5/06, Steve Hutton <shutton_at_[hidden]> wrote:
>
> SOCI supports something very similar, with either positional binding
> like you show, or binding by name.
>
Would you by any chance be adding boost::tuple or boost::fusion tuple
support for efficient result/element access? Or would statically
defined positional interfaces be a bit harder to introduce with the
current code?
Will there by any chance be a way to do something like:
resultset::iterator iterator = sql << select() << from("table_name");
std::string name, address;
unsigned int id_num;
tie<std::string, address, unsigned int>(name, address, id_num) =
iterator->tuple();
will be made available in the future?
-- Dean Michael C. Berris C++ Software Architect Orange and Bronze Software Labs, Ltd. Co. web: http://software.orangeandbronze.com/ email: dean_at_[hidden] mobile: +63 928 7291459 phone: +63 2 8943415 other: +1 408 4049532 blogs: http://mikhailberis.blogspot.com http://3w-agility.blogspot.com http://cplusplus-soup.blogspot.com
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk