Article View: comp.std.c++
Article #1792Re: C++ Standards Bug!!!
From: Eric Biederman
Date: Tue, 22 Aug 1995 07:20
Date: Tue, 22 Aug 1995 07:20
26 lines
1287 bytes
1287 bytes
Distribution:
In article <418s1k$7oc@engnews2.Eng.Sun.COM> clamage@Eng.Sun.COM (Steve Clamage) writes:
Finally, why are you allergic to typedefs? I prefer to use typedefs,
particularly for function pointers since the syntax is too hard
to read.
Just at note, there are some cases involving templates especially
template arguments that are next to impossible to write with a cast.
consider:
template <class A,class B,void (*c)(A&, B&)>
class Z { ... };
It's the best I can think of off the top of my head.
Now does the standard allow, any way to use a typedef here?
Eric
---
[ 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.95Aug21232032@Austern>Path:
arc1-ca.pugleaf.net!howland.reston.ans.net!agate!agate!MattReferences:
<MATT.95Aug19114614@Austern> <MATT.95Aug20111508@Austern> <418s1k$7oc@engnews2.Eng.Sun.COM>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!howland.reston.ans.net!agate!agate!Matt From: ebiederm@cse.unl.edu (Eric Biederman) Newsgroups: comp.std.c++ Subject: Re: C++ Standards Bug!!! Date: 22 Aug 1995 07:20:32 GMT Organization: University of Nebraska--Lincoln Approved: Matt@Austern Message-ID: <MATT.95Aug21232032@Austern> References: <MATT.95Aug19114614@Austern> <MATT.95Aug20111508@Austern> <418s1k$7oc@engnews2.Eng.Sun.COM> NNTP-Posting-Host: austern.hip.berkeley.edu