JosEPh_II
TBS WarLord
Good Luck!Now I know where I made the error: (basketweaver has 1 of 5 bonus requirements copied)
std::find(it1, it2, val) should end at it2 when nothing found, so my algorithm is wrong
Code:int iSizeOrig = (int)target.size(); target.reserve(iSizeOrig + (int)source.size()); while (source.size()) { T& Val = source.back(); if (find(target.begin(), target.begin()+iSizeOrig, Val) == target.end()) // should be == target.begin()+iSizeOrig { target.push_back(Val); } source.pop_back(); }
