I'm sure boost has some features for this, but I don't know the corresponding libraries well enough. I have a template class that is pretty simple, with the exception of one turn, where I need to define a conditional type. Here is the psuedo code for what I want
struct PlaceHolder {};
template <typename T>
class C{
typedef (T == PlaceHolder ? void : T) usefulType;
};
How to write this conditional type?
source
share