Boost logo

Boost Users :

From: Sliwa, Przemyslaw (London) (Przemyslaw_Sliwa_at_[hidden])
Date: 2005-05-11 11:36:49

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;
    // 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,

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.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at