Boost logo

Boost Users :

Subject: Re: [Boost-users] metaprogramming -- does a specialization exist?
From: joel falcou (joel.falcou_at_[hidden])
Date: 2010-02-13 14:40:57


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
>
> type<A, B> exists and if not select type<B, A>?
I tried that:

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

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