Boost logo

Boost :

From: Gennadiy Rozental (gennadiy.rozental_at_[hidden])
Date: 2005-11-12 22:02:41


> | > # 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


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk