From: Warren Young Date: August 13 2008 6:48pm Subject: Re: A way to copy mysqlpp::StoreQueryResult into a std::map? List-Archive: http://lists.mysql.com/plusplus/7865 Message-Id: <48A32C82.4060008@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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.