Boost logo

Boost Users :

Subject: [Boost-users] how to detect if a type is among a know list inside enable_if
From: Claude Brisson (claude_at_[hidden])
Date: 2009-03-11 11:44:16


Hi,

I need to enable only if a type T is among a specific known list.

I tried to build an operator is_one_of< T, list of known types >
condition that could be used within an enable_if (like others
type_traits operators), like this:

or< is_same< T, type1 >, or< is_same< T, type2>, ... >

so I searched for an or< condition1, condition2> construct and didn't
find anything...

Thanks for your suggestions!

  Claude


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