Original Post
Hello folks
Iam using c++ in my development ..
now i have a class inside which there is a function which return the start iterator of the list inside the class .
so its something like this ..
class myclass
{
list* mylist;
... other stuff .
public :
list::iterator getstartIter();
};
list::iterator myclass::getstartIter()
{
if( mylist)
return mylist->begin();
else
// return what ????????? that i cant understand ..
//some folks say we should not return a NULL as it will work on linux but crash on windows
}
i hope i made my problem clear ..
thanks in advance
y2jsave
Iam using c++ in my development ..
now i have a class inside which there is a function which return the start iterator of the list inside the class .
so its something like this ..
class myclass
{
list
... other stuff .
public :
list
};
list
{
if( mylist)
return mylist->begin();
else
// return what ????????? that i cant understand ..
//some folks say we should not return a NULL as it will work on linux but crash on windows
}
i hope i made my problem clear ..
thanks in advance
y2jsave