
24 Jun
2011
24 Jun
'11
8:02 p.m.
I anticipated that this would be a problem and already provided some remedy (I won't delve on it), but did not push the reasoning far enough. The next step, I think, is to try to get back to functions, as you suggest, but free functions, not member functions. I already proposed a
Consequently, using the first form, the use of operator% would appear, only for additional options:
( push_front<1>( cont ) % ( _data = f ) % ( _repeat = n ) )( 1, 10, 100, 1000 );
I still hadn't pushed the reasoning far enough but another participant completed it : push_front<1>( cont, _data = f, _repeat = n )( 1, 10, 100, 1000 ); Although it appears in another message, I wanted to make sure it wasn't missed.