LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   facing problem in increment operator of set :infinite LOOP (http://www.linuxquestions.org/questions/programming-9/facing-problem-in-increment-operator-of-set-infinite-loop-189102/)

ashwinipahuja 06-03-2004 01:05 AM

facing problem in increment operator of set :infinite LOOP
 
hello

iam using set STL in my code.
when i am using its iterator to increment it goes in to infinte loop .
i am attaching the piece of code . the code is running fine in MSVC

set <CNodeWrapper> subNetwork
set<CNodeWrapper>::iterator subNetworkBeg; subNetworkBeg = subNetwork.begin();
subNetworkEnd = subNetwork.end();
for(;subNetworkBeg != subNetworkEnd; ++subNetworkBeg)
{
listSubNtw.push_back((*subNetworkBeg)());
}


All times are GMT -5. The time now is 04:23 PM.