I am trying to compile an application which is showing error in following line:
enum class HoleMaskPixelTypeEnum {HOLE, VALID, UNDETERMINED};
I haven't uses enum is such way along with class keyword. If I comment the keyword class then following error occur
error C2864: 'HolePixelValueWrapper<T>::Value' : only static const integral data members can be initialized within a class
which is in following code:
template <typename T>
struct HolePixelValueWrapper
{
HolePixelValueWrapper(const T value) : Value(value){}
operator T()
{
return this->Value;
}
T Value = 0;//error here.
};
No idea to solve it.