• 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: Problem using map template in Cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem using map template in Cocoa


  • Subject: Re: Problem using map template in Cocoa
  • From: Dave Fernandes <email@hidden>
  • Date: Wed, 11 Jul 2007 09:33:19 -0400

Can you post the code for how you constructed the map?

On Jul 11, 2007, at 4:10 AM, parag vibhute wrote:

Hi guys,

I am developing an application in objective-C++.
I am trying to use "map" template in one of C structure & trying to insert
some data in it as follows:


#include <iostream>
#include <string>
#include "map.h"
using namespace std;
typedef map<int, std::string> Mymap;


typedef struct mystruct { int loc; Mymap structmap; } *mystructptr;



I have written following code in one of my C function:
const int temp = 1;
mystructptr->structmap.insert(Mymap::value_type(temp, "testing"));


When I run above code, program goes in debug mode & remain hung in last
statement showing "std::rb_tree_decreament" in thread window of debugger.
I am unable to find out the what is reason behind this?


Please guide me.

Thanks,
Palav
_______________________________________________

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:
40utoronto.ca


This email sent to email@hidden

_______________________________________________

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: 
 >Problem using map template in Cocoa (From: "parag vibhute" <email@hidden>)

  • Prev by Date: Re: Core Data and Document Packages
  • Next by Date: successive transformations
  • Previous by thread: Problem using map template in Cocoa
  • Next by thread: Re: Problem using map template in Cocoa
  • Index(es):
    • Date
    • Thread