Boost logo

Boost :

From: Daniel Frey (daniel.frey_at_[hidden])
Date: 2003-02-05 08:42:39


Peter Dimov wrote:
>
> Paul Mensonides wrote:
> >
> > [deep breath]
> >
> > I think that he thought that you might have thought that the
> > cv-qualified specializations would match
> > pointers-to-cv-qualified-member-functions rather than just
> > cv-qualified-pointers-to-members.
>
> Yes, exactly. Apologies for the confusion. It is a common mistake to provide
> only R T::* and expect that to match all pointers to members. To get back to
> your earlier post,
>
> int (X::*pf) () const;
>
> is not the same as
>
> typedef int (*F) () const;
> typedef F X::* pf;
>
> since the first typedef is ill-formed, function types cannot be
> cv-qualified.

The standard seems to disagree, see 9.3.1/9. Or is it just
pointers-to-functions against pointer-to-member-functions?

> Either way, it seems that you meant what you said, i.e. cv-qualified
> pointers to members. Sorry for the noise.

No problem, I just wanted to make sure I don't miss some important
point..

Regards, Daniel

-- 
Daniel Frey
aixigo AG - financial training, research and technology
Schloß-Rahe-Straße 15, 52072 Aachen, Germany
fon: +49 (0)241 936737-42, fax: +49 (0)241 936737-99
eMail: daniel.frey_at_[hidden], web: http://www.aixigo.de

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