Templates

Published October 02, 2006
Advertisement
Writing from another computer, so I can't get my code right now.

I'm experimenting with templates and overloading the () operator (function objects) so I can simplyfy my store component. Right now I have rwo store functions, each doing the same thing, other than the type of item they're handling. They're hard to keep in-sync too. I'm working with three classes, all very simplified, to test this usage of function objects. I had some troubles with getting them to work right, but now I can simplify the store. [grin]
Previous Entry Store
0 likes 0 comments

Comments

Nobody has left a comment. You can be the first!
You must log in to join the conversation.
Don't have a GameDev.net account? Sign up!
Profile
Author
Advertisement
Advertisement