As keys in std::map
are const your operator<
method must be const as well:
bool operator<(const RJNodeAddress &l) const
// ^ here
it should be const anyway as it does not modify the object but in this case missing it leads to compilation errors.
solved Creating std::map with a structure as its key and value [duplicate]