I am trying to have a class that allows implicit casting to certain built in types, like unsigned long int and since I\'m trying to do this as correct as possible (this is my fi
You could remove the const from the declaration, but what you almost certainly want to do is add it to the definition:
const
CustomizedInt::operator unsigned long() const { unsigned long int output; output = (unsigned long int)data; return output; }