• 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: Mixing C++ and Obj-C (odd compile errors)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mixing C++ and Obj-C (odd compile errors)


  • Subject: Re: Mixing C++ and Obj-C (odd compile errors)
  • From: Brad Peterson <email@hidden>
  • Date: Sun, 16 Sep 2007 09:01:29 -0700 (PDT)

Hi,

> Likely an issue of not using typename correctly, for
> example in the
> below.
>
>    template<class T>
>    WORD get_next_id(typename const std::map<WORD,
> T>& map_cont)
>    {
>      typename std::map<WORD, T>::const_iterator it =
> map_cont.begin();

It was the second typename (preceding "std::map...")
that did the trick!

Thank you so much!

B



____________________________________________________________________________________
Boardwalk for $500? In 2007? Ha! Play Monopoly Here and Now (it's updated for today's economy) at Yahoo! Games.
http://get.games.yahoo.com/proddesc?gamekey=monopolyherenow
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: Mixing C++ and Obj-C (odd compile errors) (From: Shawn Erickson <email@hidden>)

  • Prev by Date: Re: How to avoid excessive hard coding when programatically inserting Core Data entity ?
  • Next by Date: Re: How to avoid excessive hard coding when programatically inserting Core Data entity ?
  • Previous by thread: Re: Mixing C++ and Obj-C (odd compile errors)
  • Next by thread: Re: Mixing C++ and Obj-C (odd compile errors)
  • Index(es):
    • Date
    • Thread