Re: C++ templates?
Re: C++ templates?
- Subject: Re: C++ templates?
- From: Allan Odgaard <email@hidden>
- Date: Thu, 15 Apr 2004 22:52:33 +0200
On 15. Apr 2004, at 22:21, David Piasecki wrote:
I didn't even have to use the template. Simply creating one in
MyObject, as shown below again, will crash the program.
What does your main() do? If I compile your object with a dummy main it
does *not* crash.
I don't use any objective-C objects with this template.
So is this at all related to ObjectiveC and/or Cocoa? Or is this just a
GCC problem with pure C++? If so, it would seem you have the wrong
list.
Hmmm... I've always used templates that have the syntax <class Type>
instead of <typename Type> like you do. Could that be the problem?
No. Typename and class are synonymous.
** Cocoa FAQ: <
http://www.alastairs-place.net/cocoa/faq.txt> **
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.