This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: C++ PATCH: static_cast regression
- To: martin at loewis dot home dot cs dot tu-berlin dot de
- Subject: Re: C++ PATCH: static_cast regression
- From: Mark Mitchell <mark at codesourcery dot com>
- Date: Tue, 04 Jan 2000 16:39:07 -0800
- Cc: gcc-patches at gcc dot gnu dot org, nathan at cs dot bris dot ac dot uk
- Organization: CodeSourcery, LLC
- References: <200001050020.BAA04652@loewis.home.cs.tu-berlin.de>
>>>>> "Martin" == Martin v Loewis <martin@loewis.home.cs.tu-berlin.de> writes:
>> But I'm uncomfortable with the (widespread in g++) practice of
>> coding up routines to do things that the standard specifies,
>> but in a way that bears no resemblance to *what* the standard
>> specifies.
Martin> It is really nobodies fault that the final algorithm
Martin> differs from what g++ does. If there is an opportunity,
Martin> rewriting such algorithms from scratch is often the right
Martin> thing, if time permits.
I agree, on both counts. I by no means meant my message to be
construed so as cast aspersions on the illustrious forefathers of g++!
Rather, I was simply pointing out that in looking at the static_cast
routine in G++, I'm really not convinced it's handling all the various
cases correctly. :-(
--
Mark Mitchell mark@codesourcery.com
CodeSourcery, LLC http://www.codesourcery.com