|
Boost Users : |
From: Sliwa, Przemyslaw (London) (Przemyslaw_Sliwa_at_[hidden])
Date: 2005-05-11 11:36:49
All,
I have a question with regards more to the C++ than Boost.
I would like to write a template which depending on the argument type
does different things.
For example the pseudo code:
template <class T, class C>
foo(T& nT, C& nC)
{
// common code;
if(T==C)
// specific code;
.....
// again common code;
}
Can the template meta programming help me in this case? Sorry, I have no
experice with this and I am just guessing.
Do you have any suggestions?
Thanks for help,
Pshemek
--------------------------------------------------------
If you are not an intended recipient of this e-mail, please notify the sender, delete it and do not read, act upon, print, disclose, copy, retain or redistribute it. Click here for important additional terms relating to this e-mail. http://www.ml.com/email_terms/
--------------------------------------------------------
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net