How come when I have the same sort algorithm, as such
bool Sorter(const Object* n1, const Object* n2) { return (n1->GetValue() < n2->GetValue()); }
in separate .cpp files the linker (l believe) gives me a multiply defined symbol -error? When I rename them (Sorter1, Sorter2, ..) it compiles. These classes are inherited from the same parent class but the parent has no algorithm stuff in there. I just fail to realize why this becomes an error when the classes have no direct contact to each other and am curious.
Also, is there any direct way of referencing sorters from say, a parent class, or do I just have to create a function which uses the sorter?