• 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: :min, std::max
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: :min, std::max


  • Subject: Re: :min, std::max
  • From: Chris Espinosa <email@hidden>
  • Date: Mon, 24 Oct 2005 15:14:01 -0700


On Oct 24, 2005, at 2:53 PM, Carl Smith wrote:

As an example of the exact error I am getting;

“error:expected unqualified-id before ‘(‘ token”

then the error is pointing to the line

“const streamsize __limit = std::min(__chunk, __bufavail):” in the file fstream.tcc

there are 12 such errors, all relating to std::min and std::max.


The usual cause for this is #defining min or max in some header file.  

Often people #define min(x,y) (x < y ? x : y) and that will be expanded in the definition of std:: min, which will blow up.

Chris
 _______________________________________________
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

  • Follow-Ups:
    • Re: :min, std::max
      • From: "W. Douglas Maurer" <email@hidden>
    • Re: :min, std::max
      • From: Tommy Nordgren <email@hidden>
References: 
 >RE: :min, std::max (From: "Carl Smith" <email@hidden>)

  • Prev by Date: RE: :min, std::max
  • Next by Date: Re: :min, std::max
  • Previous by thread: RE: :min, std::max
  • Next by thread: Re: :min, std::max
  • Index(es):
    • Date
    • Thread