9 messages in com.mysql.lists.plusplusRe: Passing functors into query
FromSent OnAttachments
Joel Fielder13 Apr 2007 09:32 
Warren Young18 Jun 2007 21:44 
Joel Fielder19 Jun 2007 03:18 
Warren Young19 Jun 2007 04:22 
Joel Fielder19 Jun 2007 06:35 
Warren Young20 Jun 2007 05:05 
Joel Fielder20 Jun 2007 05:32 
Warren Young20 Jun 2007 06:28 
Joel Fielder21 Jun 2007 02:14 
Subject:Re: Passing functors into query
From:Warren Young (mysq@etr-usa.com)
Date:06/19/2007 04:22:40 AM
List:com.mysql.lists.plusplus

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