Iterators to different containers problem
I have been struggling with finding a solution to my program.
I have an expression tree which contains nodes which have std::set as there data member.
I am trying to use the set_union() function to return a union of the sets, but since the set_union() function parameters point to different containers, I get a runtime error:
I have been Googling, and it seems other people have had similar problems, and so I come here to ask for advice on how I should go about solving the issue..
Debug assertion failed. Expression map/set iterators incompatible
Would really appreciate some advice on how I can overcome this issue, been stuck for a couple of days now and seem to be getting no where.