Re: makefile - xcode - C++ macro error
Re: makefile - xcode - C++ macro error
- Subject: Re: makefile - xcode - C++ macro error
- From: David A Rowland <email@hidden>
- Date: Fri, 6 Apr 2007 08:40:43 -0700
At 2:40 AM -0700 4/6/07, Steve Checkoway wrote:
Content-Type: multipart/signed; micalg=sha1; boundary=Apple-Mail-15--23283302;
protocol="application/pkcs7-signature"
On Apr 5, 2007, at 10:10 PM, Bruce Johnson wrote:
From my research I'm finding that apparently the compiler confuses
the function
template<typename _CharT>
inline bool
isspace(_CharT, const locale&);
in localefwd.h
with the macro
#define isspace(c) __istype((c), _CTYPE_S)
in ctype.h
It's not that it's confusing the two, it's that the preprocessor
runs first. Try including <cctype> before <iostream>.
Macros are terrible. They march all over your source code replacing
text strings without regard to namespaces, syntax or common sense. A
common practice, and highly recommended, is to use all caps for the
macro (and only for macros).
_______________________________________________
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