Original Post
example: how can I do a find on this type of set to get an iterator that I then can delete later on? I get error C3848???? how can I do a find to get an iterator to then delete it from set?
struct T_MESH_dis_comp
{
bool operator () (const T_MESH* a, const T_MESH* b)
{
//Sort Furthest to Closest
if (a->meshRenderData.disToCamera > b->meshRenderData.disToCamera)
return true;
else
return false;
}
};
T_MESH* g;
std::set<T_MESH*,T_MESH_dis_comp> a;
a.insert( g );
std::set<T_MESH*,T_MESH_dis_comp>::iterator itr = a.find( g ); //error C3848