Boost logo

Boost :

From: Lucas Galfaso (lgalfaso_at_[hidden])
Date: 2004-01-09 12:14:59


Hi,

"Joel de Guzman" <joel_at_[hidden]> wrote in message
news:3FFDF188.6060501_at_boost-consulting.com...
> Lucas Galfaso wrote:
>
> >>AFAICT, those warnings are innocuous (some do not even make sense, for
> >>example, "warning C4180: qualifier applied to function type has no
> >>meaning; ignored is" seems to be bogus). However, I agree with you that
> >>it is a good thing to suppress as much warnings as possible. I'll look
> >>into this. I would appreciate it if you could send in patches that
> >>fixes the warnings.
> >>
> >
> >
> > Actually, this one is the only one I considered not a bug.
> > A type qualifier on the return type of static member functions is
> > meaningless.
>
> I'm lost. Could you please elaborate?
>
> template <typename TupleT>
> plain_t const
> eval(TupleT const& /*args*/) const
> {
> return val;
> }
>
> 1) eval is not a static member function
> 2) we are returning a const plain_t

Actually, type qualifier on the return type of member functions is
meaningless (if they are not returned by referece.)

Lucas/

>
> --
> Joel de Guzman
> http://www.boost-consulting.com
> http://spirit.sf.net
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: Perforce Software.
> Perforce is the Fast Software Configuration Management System offering
> advanced branching capabilities and atomic changes on 50+ platforms.
> Free Eval! http://www.perforce.com/perforce/loadprog.html


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