Boost logo

Boost :

From: Paul A Bristow (pbristow_at_[hidden])
Date: 2005-11-13 12:27:42


Well please don't shoot the messenger!

Suggest you leave it for now. Await other reports? Works fine.
Only an annoyance for pedants that use warning level 4 I think.

Paul

| -----Original Message-----
| From: boost-bounces_at_[hidden]
| [mailto:boost-bounces_at_[hidden]] On Behalf Of Gennadiy Rozental
| Sent: 13 November 2005 03:03
| To: boost_at_[hidden]
| Subject: Re: [boost] Boost Test - yet more mostly spurious warnings.
|
| > | > # 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