"David Abrahams" <david.abrahams@[...].com> writes:
| From: "Richard Peters" <R.A.Peters@[...].nl> > > > Then you can replace the postfix increment operator with> >> > number operator++(int)> > { return postfix_increment(*this); }>
| Why not just:
>
| number operator++(int)
| {
| return postfix_incrementer<number> (*this);
| }
>
| ?
When testing this and the prev. version with gcc, I get a 2:3
perfomance difference in favour of the traditional solution.
Gcc 3.1 -O3
./postincr
Number1: 6650000
Number2: 9900000
--
Lgb
_______________________________________________
Unsubscribe & other changes: http://lists.boost.org/mailman/listinfo.cgi/boost