I have an enum:
enum eOperandType
{
Int8,
Int16,
Int32,
Float,
Double
};
and a member function of the class 'Double'
eOperandType Double::getType(void) const
{
return (eOperandType::Double);
}
and it gives me a compiler warning about using enumeration in nested name specifier.
I also switched the return line to: return (Double);
but then it just gave me an error regarding an expected expression.
How do i resolve this?
edit: changing the line to return (::Double);
did fix both the warning and the error. Could someone explain why this fixes it?