
13 Nov
2005
13 Nov
'05
3:02 a.m.
| > # pragma warning(disable: 4180) // qualifier applied to | function type has | > no | > meaning; ignored | > | > at: | > const_string message() const { return !m_message ? | const_string() : | > const_string( m_message->str() ); } | > | > ^^ const not useful? but not wrong. | | Sorry, where is qualifier?
Is it objecting to the const?
const_string message() const
shall I try removing it?
It doesn't make any sence. class predicate_result has a non-const method mesage() already with completely different semantic. You couldn't and shouldn't remove const there. And this qualifier has a well defined meaning. Gennadiy