Topic: function typedef in class scope
Author: Alexander Krotoff <krotoff@such.srcc.msu.su>
Date: 1998/01/23 Raw View
Hi!
It is not clear to me what semantics is for the following test
from the g++ testsuite:
------------------------------------------------------
// Build don't link:
// GROUPS passed typeck
// typeck file
// From: Dror Caspi <dror@fibronics.co.il>
// Date: Wed, 9 Jun 1993 17:43:48 +0300
// Subject: function typedefs in classes
// Message-ID: <199306091443.AA03735@zorba.fibronics.co.il>
class a
{
public:
typedef void (X)();
X x;
};
------------------------------------------------------
Is it correct according to DIS ?
Is a::x() a static member function ?
Does it matter where typedef is defined (inside or outside the
class body) ?
Thank you in advance,
Alexander
---
[ comp.std.c++ is moderated. To submit articles: Try just posting with your
newsreader. If that fails, use mailto:std-c++@ncar.ucar.edu
comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
Comments? mailto:std-c++-request@ncar.ucar.edu
]