• 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
Mixing ObjC and C++ STL on same ObjC source file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mixing ObjC and C++ STL on same ObjC source file


  • Subject: Mixing ObjC and C++ STL on same ObjC source file
  • From: Daniel Luis dos Santos <email@hidden>
  • Date: Fri, 12 Sep 2008 09:17:57 +0100

Hello !

I have an objective C class and want to call a method on a class in C+ +. As argument to the C++ class is a map instance of the STL.
The ObjC class definition is on a file with a mm extension.


I have std::map *var as a member variable of the ObjC class. When I compile the code there is an error saying :

/Users/dlsa/code/Finema/trunk/LiquidSurfaces/src/CVDisplayPipeline.h: 20: error: using-declaration for non-member at class scope

How do I do this ?
_______________________________________________

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


  • Follow-Ups:
    • Re: Mixing ObjC and C++ STL on same ObjC source file
      • From: Dave Carrigan <email@hidden>
    • Re: Mixing ObjC and C++ STL on same ObjC source file
      • From: email@hidden
  • Prev by Date: Re: GDB Problems
  • Next by Date: Re: Mixing ObjC and C++ STL on same ObjC source file
  • Previous by thread: New Core Data document
  • Next by thread: Re: Mixing ObjC and C++ STL on same ObjC source file
  • Index(es):
    • Date
    • Thread