Re: error: parse error before `;' token ???
Re: error: parse error before `;' token ???
- Subject: Re: error: parse error before `;' token ???
- From: Jens Miltner <email@hidden>
- Date: Tue, 20 Jan 2004 19:51:06 +0100
Am 20.01.2004 um 18:10 schrieb Dave Thorup:
On Jan 20, 2004, at 11:27 AM, Jens Miltner wrote:
In my experience, min and max are often defined as macros as well -
causing endless grief when using C++ ;-)
Since you've been checking for macros hiding variable / functions, I
assume you also checked whether some other include file defined
min/max as macros already?
Doh! I didn't check for min and sure enough it was defined as a
macro. ;( It's also being included in the precompiled header for the
project. :( For now I just did a #include <string> before the other
header in our prefix file and it now gets past the parse errors. Any
better suggestions for working around this?
How about conditionalizing the definition for min to be defined only
for plain C and include <algorithm> together with a using std::min
declaration for C++?
</jum>
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.