Re: This makes no sense
Re: This makes no sense
- Subject: Re: This makes no sense
- From: Cem Karan <email@hidden>
- Date: Mon, 23 May 2005 09:36:50 -0400
Is this defined in the header file? If so, do you have idempotency
locks wrapping the file? E.g.:
#ifndef FOO_H
#define FOO_H
#endif
I get similar warnings in C if I forget the idempotency locks and I
have typedefs in the header file.
------------------------------
Message: 16
Date: Mon, 23 May 2005 14:13:13 +0100
From: "Theodore H. Smith" <email@hidden>
Subject: This makes no sense
To: email@hidden
Message-ID: <email@hidden>
Content-Type: text/plain; charset=US-ASCII; format=flowed
If I define a function like this:
CString operator+(CString me, const char* s)
I get told that the function is multiply defined. (although I can't
actually find the other definition, and I didn't write it myself).
However, if I comment out this function, I get told
error: no match for `CString& = std::basic_string<char,
std::char_traits<char>, std::allocator<char> >' operator
On the code:
char* tempr = (char*)randData;
szbuf = szbuf + tempr; // error on this line
Which is exactly the problem that this operator is supposed to solve.
So, if the operator was already defined, then why wasn't already
used????? Xcode is making no sense here. It's contradicting itself.
I suppose I should stick to function syntax, as Xcode can't seem to
handle operators.
--
elfdata.com/plugin/ Industrial strength string processing, made easy.
"All things are logical. Putting free-will in the slot for premises in
a logical system, makes all of life both understandable, and free."
_______________________________________________
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