• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Change in template class handling?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Change in template class handling? (From: "Mark Wagner" <email@hidden>)
 >Re: Change in template class handling? (From: Chris Espinosa <email@hidden>)

  • Prev by Date: Re: Interface Builder
  • Next by Date: Re: Interface Builder
  • Previous by thread: Re: Change in template class handling?
  • Next by thread: Why does xcode flag script output lines as errors?
  • Index(es):
    • Date
    • Thread