bool equals_double(const void* elem1, const void* elem2){ if (*(int*)elem1 == *(int*)elem2)
bool equals_int(const void* elem1, const void* elem2){ if (*(static_cast<int*>(elem1)) == *(static_cast<int*>(elem2))){ return true; } else{ return false; } }
error: static_cast from type 'const void*' to type 'int*' casts away qualifiers|
static_cast
...<const int*>...
double
int
const_cast
const
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)