EnableIfFlag< T, FLAGS, A, B > Class Template Reference

#include <apibase.h>

Inheritance diagram for EnableIfFlag< T, FLAGS, A, B >:

Detailed Description

template<typename T, typename FLAGS, FLAGS A, FLAGS B>
class maxon::EnableIfFlag< T, FLAGS, A, B >

This helper class is a work-around for an MSVC bug in the type std::enable_if<(A & B) != FLAGS::NONE, T>. If A & B is not zero, EnableIfFlag<T, FLAGS, A, B, true> has a type alias member pointing to T, otherwise there is no such type alias member.

Template Parameters
TType used for the result.
FLAGSType of the flags.
AFirst flag value.
BSecond flag value.