Article View: comp.std.c++
Article #1742C++ Standards Bug!!!
From: Ray Brown
Date: Sat, 19 Aug 1995 02:07
Date: Sat, 19 Aug 1995 02:07
30 lines
1121 bytes
1121 bytes
Distribution:
The challenge: try to rewrite the last two lines of this code
without a typedef (typedefs should never be required, right?).
//////////////////////////////////////////////////////////////
struct B
{
void Foo(short);
};
struct A
{
static void (B::* var)(short);
};
typedef void (B::*q)(short);
q A::var = B::Foo;
//////////////////////////////////////////////////////////////
--
#################################################################
Email: Ray.Brown@lawson.com
Phone: (612) 379-8086 x4393
---
[ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu.
Contact address: std-c++-request@ncar.ucar.edu. The moderation policy
is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Technical Details
Message-ID:
<MATT.95Aug18190716@physics2.Berkeley.EDU>Path:
arc1-ca.pugleaf.net!128.32.155.1!mattShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!128.32.155.1!matt From: Ray Brown <102336.141@CompuServe.COM> Newsgroups: comp.std.c++ Subject: C++ Standards Bug!!! Date: 19 Aug 1995 02:07:16 GMT Organization: Lawson Software Approved: matt@physics2.Berkeley.EDU (Matt Austern) Message-ID: <MATT.95Aug18190716@physics2.Berkeley.EDU> NNTP-Posting-Host: physics2.berkeley.edu