Re: Problem using map template in Cocoa
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