• 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: C++ templates?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: C++ templates?
      • From: "David Piasecki" <email@hidden>
References: 
 >C++ templates? (From: "David Piasecki" <email@hidden>)
 >Re: C++ templates? (From: Allan Odgaard <email@hidden>)
 >Re: C++ templates? (From: "David Piasecki" <email@hidden>)

  • Prev by Date: Re: Install Program for Completed App
  • Next by Date: Re: C++ templates?
  • Previous by thread: Re: C++ templates?
  • Next by thread: Re: C++ templates?
  • Index(es):
    • Date
    • Thread