for the above code i am getting error like this....
23 C:\Users\venkata manne\Documents\list.cpp no match for 'operator=' in 'itr = list2.std::list<_Tp, _Alloc>::begin [with _Tp = int, _Alloc = std::allocator<int>]'
where as i dont see anything wrong with the above code....please help