ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> boost
boost
Re: [boost] Postfix Increment Operator
by Lars Gullik =?iso-8859-1?q?Bj=F8nnes?= other posts by this author
Jun 11 2002 2:06PM messages near this date
Re: [boost] Postfix Increment Operator | Re: [boost] Postfix Increment Operator
"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
Thread:
Powell, Gary
=?iso-8859-1?Q?Terje_Sletteb=F8?=
Daniel Frey
Daniel Frey
David Abrahams
Richard Peters
David Abrahams
Lars Gullik =?iso-8859-1?q?Bj=F8nnes?=
Brad King
Brad King

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved