I'm having problems trying to compile in C++. net some code written
in C++ 6.0. I used to treat any iterator as a pointer, but now the
compiler says he cannot convert an iterator to a pointer.
Say I have a class with a member being a stl vector of other object
class object1
{
private:
vector<object2> vector_object2;
}
that class has a function that has a pointer to object 2 as argument:
double object1::calculate_something(* object2)
{
// some code
return(whatever);
}
and now I try to use that function passing to it some element of the
vector:
void object1::do_something_else()
{
vector<object2>::iterator p=vector_object2.begin();
double result=calculate_something(p);
}
This used to work just fine with C++ 6.0, but in C++.net it issues
errors stating that the iterator connot be converted to a pointer!
Can somebody tell me what can I do to make the compiler recognize the
iterators as pointers?
Thanks a lot
------------------------ Yahoo! Groups Sponsor --------------------~-->
$4.98 domain names from Yahoo!. Register anything.
http://us.click.yahoo.com/Q7_YsB/neXJAA/yQLSAA/EbFolB/TM
--------------------------------------------------------------------~->
To unsubscribe : [EMAIL PROTECTED]
Yahoo! Groups Links
<*> To reply to this message, go to:
http://groups.yahoo.com/group/Programmers-Town/post?act=reply&messageNum=4530
Please do not reply to this message via email. More information here:
http://help.yahoo.com/help/us/groups/messages/messages-23.html
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Programmers-Town/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/