laziness, impatience, and hubris | |
PerlMonks |
Re: Re: Be grateful for Perl OOby tall_man (Parson) |
on Jan 28, 2003 at 18:09 UTC ( [id://230672]=note: print w/replies, xml ) | Need Help?? |
Yes, functors created using templates would help a lot.
See Modern C++ Design for some amazing
things you can do with C++ templates.
Update: The basic idea is using a templated function like this: Update 1/19/03: Transposed the return type to the proper place in the declaration. Thanks to John M. Dlugosz.
In Section
Meditations
|
|