| List: | MySQL++ | « Previous MessageNext Message » | |
| From: | Warren Young | Date: | August 13 2008 6:48pm |
| Subject: | Re: A way to copy mysqlpp::StoreQueryResult into a std::map? | ||
| View as plain text | |||
Alex wrote: >>From looking at this: > > http://www.tangentsoft.net/mysql++/doc/html/refman/classmysqlpp_1_1Query.html#6e66c6fe3b2fabebf2db862601b5ffbb-- > I would guess that I can't store it in a map - or anything else - with > string'd element names? ( some_result["name"] for example ) Oh, I forgot that we only support set and multiset, not map. So, the second solution is the one you want: build your own map with Query::for_each. See examples/for_each.cpp.
