
5 Dec
2008
5 Dec
'08
9:32 p.m.
AMDG Robert Jones wrote:
but I'd like the nested clip function to be fn( i, j ), so I tried this...
boost :: function< void( int, int ) > clip2 = boost :: lambda :: bind( clip, img -> m7[ _2 ][ _1 ], mpr[ _2 ][ _1 ] );
for( j = joff; j != jlast; ++ j ) for( i = ioff; i != ilast; ++ i ) clip2( i, j );
Which doesn't work. I think I need some boost::refs around the arrays I'm subscripting, but I can't quite seem to get it right.
Boost.Lambda uses var. var(img->m7)[_2][_1]; In Christ, Steven Watanabe