metaprogramming -- does a specialization exist?

Is there some way to check at compile time whether a particular specialization exists? E.g. I have a template class with two template arguments which are commutative -- means they can be exchanged and the result is the same. Can I check whether type exists and if not select type? Peter

Peter Foelsche wrote:
Is there some way to check at compile time whether a particular specialization exists? E.g. I have a template class with two template arguments which are commutative -- means they can be exchanged and the result is the same. Can I check whether
http://codepad.org/k4dOuaZy but it still fails. But I thnik it should be investigated further -- ___________________________________________ Joel Falcou - Assistant Professor PARALL Team - LRI - Universite Paris Sud XI Tel : (+33)1 69 15 66 35

AMDG Peter Foelsche wrote:
Is there some way to check at compile time whether a particular specialization exists? E.g. I have a template class with two template arguments which are commutative -- means they can be exchanged and the result is the same. Can I check whether
You can't specializations directly, but if you can change
the primary template you can use:
template
participants (3)
-
joel falcou
-
Peter Foelsche
-
Steven Watanabe