Topic: Member Function pointer Template parame


Author: ball@Eng.Sun.COM (Mike Ball)
Date: 1995/05/18
Raw View
In article 8BI@edg.com, jhs@edg.com (John H. Spicer) writes:
>
> This is based on issue 6.17 from my template issues paper.  This
> issue was approved at the Waterloo meeting (7/94) and clearly
> includes both pointer to data and pointer to function types.

I'm afraid that I'm the one that led Steve astray on this, and I did it because
of the following text

2 A  non-type  non-reference  template-argument  shall  be  a  constant-
  expression of non-floating type, the address of an object or  a  func
  tion  with  external  linkage,  or a non-overloaded pointer to member.
  The address of an object or function shall be expressed as &f, plain f
  (for  function only), or &X::f where f is the function or object name.
  In the case of &X::f, X shall be a  (possibly  qualified)  name  of  a
  class  and  f  the  name of a static member of X.  A pointer to member
  shall be expressed as &X::m where X is a (possibly qualified) name  of
  a  class  and  m  is the member name.

I combined this with my memories of an earlier version of the DWP where the
distinction between pointer to member and pointer to member function was
made.  I just checked that area in the draft and this is entirely consistent
with the current wording.

I'm sorry, there was a bit of "anachronism" there.

-Mike Ball-