Re: Mixing C++ and Obj-C (odd compile errors)
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