This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Template functions


Template functions

Postby efortier » Feb 5, 2004 @ 11:45am

User avatar
efortier
pm Insider
 
Posts: 373
Joined: May 15, 2002 @ 10:32pm


Postby Dan East » Feb 5, 2004 @ 2:45pm

User avatar
Dan East
Site Admin
 
Posts: 5264
Joined: Jan 25, 2001 @ 5:19pm
Location: Virginia, USA


Postby Arisme » Feb 5, 2004 @ 3:21pm

I think templates could be useful in that case if both functions are somewhat similar - I like this template use in for example
Arisme
pm Insider
 
Posts: 1453
Joined: Jan 27, 2002 @ 1:07am
Location: France


Postby angedelamort » Feb 5, 2004 @ 7:13pm

User avatar
angedelamort
pm Member
 
Posts: 304
Joined: Mar 7, 2002 @ 11:16pm
Location: Montreal, Quebec


Postby drgoldie » Feb 5, 2004 @ 8:16pm

drgoldie
pm Member
 
Posts: 330
Joined: Jan 10, 2003 @ 10:46am
Location: Vienna


Postby StephC » Feb 5, 2004 @ 8:38pm

Stephane Cocquereaumont / Game Developer at <a href=http://int13.net>int13 production</a> (code monkey)
User avatar
StephC
pm Insider
 
Posts: 442
Joined: Jun 12, 2003 @ 10:41am
Location: Bordeaux - France


Postby drgoldie » Feb 5, 2004 @ 9:00pm

drgoldie
pm Member
 
Posts: 330
Joined: Jan 10, 2003 @ 10:46am
Location: Vienna


Postby fast_rx » Feb 5, 2004 @ 10:52pm

User avatar
fast_rx
pm Member
 
Posts: 660
Joined: Jun 10, 2003 @ 4:24pm


Postby Digby » Feb 6, 2004 @ 12:34am

Digby
pm Insider
 
Posts: 1011
Joined: Apr 29, 2001 @ 1:53pm


Postby efortier » Feb 6, 2004 @ 6:16am

Hi all,

Thanks for all the replies. I tend to always forget the fact that templates are primarily compile-time tools.

Dan: I'll be using function pointers, thanks.

Digby: you are right. I just saw a chance to get rid of a dummy switch() and I couldn't resist! Thanks for the tips, and get on that optimization article! ;)

--Eric
User avatar
efortier
pm Insider
 
Posts: 373
Joined: May 15, 2002 @ 10:32pm


Return to Windows Mobile


Sort


Forum Description

A discussion forum for mobile device developers on the Windows Mobile platform. Any platform specific topics are welcome.

Moderators:

Dan East, sponge, Digby, David Horn, Kevin Gelso, RICoder

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

cron