I am trying to generalize the concept of putting database data into
boost::tuple objects. I'm thinking syntax similar to something like so:
typedef boost::tuple
Noah Roberts wrote:
I am trying to generalize the concept of putting database data into boost::tuple objects. I'm thinking syntax similar to something like so:
typedef boost::tuple
row; row r = SqlQuery<row>::run_query(db, "select * from x");
I imagine something like so being contained in the processing:
TUPLE t; ... t.get<X>() = boost::lexical_cast< typename boost::tuples::element
::type >(data[X]); // data is char ** Where X is the index of the element and the entire tuple is iterated in this manner. I thought maybe there would be something in MPL that could help but I'm not seeing it.
Anyone got any bright ideas?
Seems like Fusion is your friend here :-) Regards, -- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net
Joel de Guzman wrote:
Noah Roberts wrote:
Anyone got any bright ideas?
Seems like Fusion is your friend here :-)
I did a google search for "fusion c++" and didn't turn up anything that looked of benefit. Some dude's blog and a library having to do with networking implemented in boost.python are the closest and those seem pretty far off. Can you help me?
You should try "boost fusion": http://spirit.sourceforge.net/dl_more/fusion_v2/libs/fusion/doc/html/index.h tml -- Cédric Venet
-----Message d'origine----- De : boost-users-bounces@lists.boost.org [mailto:boost-users- bounces@lists.boost.org] De la part de Noah Roberts Envoyé : mercredi 15 août 2007 05:24 À : boost-users@lists.boost.org Objet : Re: [Boost-users] Need ideas...
Joel de Guzman wrote:
Noah Roberts wrote:
Anyone got any bright ideas?
Seems like Fusion is your friend here :-)
I did a google search for "fusion c++" and didn't turn up anything that looked of benefit. Some dude's blog and a library having to do with networking implemented in boost.python are the closest and those seem pretty far off.
Can you help me?
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
On 15/08/07, Noah Roberts
Joel de Guzman wrote:
Seems like Fusion is your friend here :-)
I did a google search for "fusion c++" and didn't turn up anything that looked of benefit.
I think he means "boost fusion", docs here: *http://tinyurl.com/7ra5g.* HTH, Darren
Darren Garvey wrote:
On 15/08/07, *Noah Roberts*
mailto:roberts.noah@gmail.com> wrote: Joel de Guzman wrote: > Seems like Fusion is your friend here :-)
I did a google search for "fusion c++" and didn't turn up anything that looked of benefit.
I think he means "boost fusion", docs here: *http://tinyurl.com/7ra5g.*
Thanks all! Upon cursory examination this looks like exactly what I need.
Is Fusion already a part of boost release 1.34.1?
------------------
LoadCom
2007-08-16
-------------------------------------------------------------
发件人:Darren Garvey
发送日期:2007-08-15 18:29:48
收件人:boost-users@lists.boost.org
抄送:
主题:Re: [Boost-users] Need ideas...
On 15/08/07, Noah Roberts
Joel de Guzman wrote:
Seems like Fusion is your friend here :-)
I did a google search for "fusion c++" and didn't turn up anything that looked of benefit.
I think he means "boost fusion", docs here: *http://tinyurl.com/7ra5g.* HTH, Darren _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
LoadCom wrote:
Is Fusion already a part of boost release 1.34.1?
Sorry, no. It will be in 1.35. Regards, -- Joel de Guzman http://www.boost-consulting.com http://spirit.sf.net
participants (5)
-
Cédric Venet
-
Darren Garvey
-
Joel de Guzman
-
LoadCom
-
Noah Roberts