Article View: comp.std.c++
Article #3719Re: static_cast
From: Matt Austern
Date: Mon, 18 Mar 1996 20:34
Date: Mon, 18 Mar 1996 20:34
25 lines
1745 bytes
1745 bytes
In article <314c3f47.1349350@nntp.ix.netcom.com> jdmorris@ix.netcom.com (Jason D. Morris) writes:
> Aren't the old C style casts and C++ functional style casts depricated
> under the draft standard?
No. It's true that new-style casts (static_cast, dynamic_cast,
reinterpret_cast and const_cast) are almost always a better solution,
but old-style casts have not been deprecated.
If a feature has been deprecated, that basically means that users are
warned to stop using that feature: there is no guarantee that it will
continue to be supported. The standardization committee chose not to
do anything so drastic in the case of casts.
--
Matt Austern
SGI: MTI Compilers Group
austern@isolde.mti.sgi.com
[ 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
]
Technical Details
Message-ID:
<AUSTERN.96Mar18102938@isolde.mti.sgi.com>Path:
arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamageReferences:
<30F54E6D.B4@worldnet.att.net> <4ih0eb$ms9@jake.esu.edu> <314c3f47.1349350@nntp.ix.netcom.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!engnews1.Eng.Sun.COM!taumet!clamage From: austern@isolde.mti.sgi.com (Matt Austern) Newsgroups: comp.std.c++ Subject: Re: static_cast Date: 18 Mar 1996 20:34:48 GMT Organization: SGI Approved: clamage@eng.sun.com (comp.std.c++) Message-ID: <AUSTERN.96Mar18102938@isolde.mti.sgi.com> References: <30F54E6D.B4@worldnet.att.net> <4ih0eb$ms9@jake.esu.edu> <314c3f47.1349350@nntp.ix.netcom.com> Reply-To: austern@cardboard.mti.sgi.com NNTP-Posting-Host: taumet.eng.sun.com X-Nntp-Posting-Host: isolde.mti.sgi.com In-Reply-To: jdmorris@ix.netcom.com's message of 18 Mar 1996 09:46:43 PST Content-Length: 706 X-Lines: 17 Originator: clamage@taumet