Why can't a volatile
object call a non-volatile
member function?
In case of const
, it makes sense that calling a non-const
member function violates the constness of the the object and hence it is prohibited. But why in the case of volatile
?