[moderator] Re: Problem using map template in Cocoa
[moderator] Re: Problem using map template in Cocoa
- Subject: [moderator] Re: Problem using map template in Cocoa
- From: Scott Anguish <email@hidden>
- Date: Fri, 13 Jul 2007 04:22:33 -0400
a reminder...
this list is for questions that pertain to the Cocoa frameworks. This
isn't a Cocoa question.
Please don't post general C questions here. There is an objective-C
list and an Xcode list that may be more applicable to questions in
this vein.
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:
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