From: Warren Young Date: June 19 2007 11:23am Subject: Re: Passing functors into query List-Archive: http://lists.mysql.com/plusplus/6674 Message-Id: <4677BC97.5040703@etr-usa.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Joel Fielder wrote: > > I use for_each most often when I need to calculate an aggregate but > still need the individual records, Can you provide an example program using the sample table that shows this? > I notice there's no for_each method which takes just the functor. Have > I missed something? Anyway, we use this method all over our projects so > I've amended it to match the better style (!) and attached a doxygenated > version for your consideration. While I was at it I created an > equivalent for store_if and that's in the patch too. Your patch didn't make it. I figured out what you meant by a version taking only a functor, so I've created and checked that in already. If this doesn't cover it, and you don't know why the patch didn't make it, just use the bug tracker: https://gna.org/bugs/?group=mysqlpp