Re: Change in template class handling?
Re: Change in template class handling?
- Subject: Re: Change in template class handling?
- From: "Mark Wagner" <email@hidden>
- Date: Wed, 26 Apr 2006 11:50:55 -0700
On 4/25/06, Chris Espinosa <email@hidden> wrote:
>
> I'd always start by preprocessing my source and seeing if some
> "helpful" header file was defining 'len" as a macro or global
> constant. One never knows.
I try to avoid looking at preprocessed source as much as possible.
One of our third-party libraries makes some...creative...use of the
preprocessor, so that, depending on the selection of preprocessor
defines, the same codebase can compile as valid K&R C, valid ANSI C,
or valid class-based C++. Makes for some rather messy results after
the preprocessor is finished with it.
> the general answer to your question is that yes, gcc 4.x has stricter
> adherence to the C++ standard, which often makes loosely-written code
> break. If you are correct in saying that this shouldn't compile, and
> it doesn't, then gcc 4 is behaving correctly, right?
It's behaving correctly, yes, but it's rather annoying to have code
that's worked for the past six years suddenly stop doing so.
--
Mark Wagner
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden