(no subject)

Date: 2008-11-10 06:15 pm (UTC)
This can actually be handled quite cleanly in C++ using template function overloading: declare one version of the function as template <typename T> and the other as template <typename T, typename U>. The compiler will introspect on the argument types and determine which version of the function to call.

I think I'm officially too geeky to live.
If you don't have an account you can create one now.
No Subject Icon Selected
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org

Profile

maradydd: (Default)
maradydd

September 2010

S M T W T F S
   1234
567891011
12131415 161718
19202122232425
26 27282930  

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags