Problem using map template in Cocoa
Problem using map template in Cocoa
- Subject: Problem using map template in Cocoa
- From: "parag vibhute" <email@hidden>
- Date: Wed, 11 Jul 2007 13:40:05 +0530
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:
This email sent to email@hidden