More strict C++
@ -37,7 +37,8 @@ struct XdsLocalityInfo {
// This comparator only compares the locality names.
struct Less {
bool operator()(const XdsLocalityInfo& lhs, const XdsLocalityInfo& rhs) {
bool operator()(const XdsLocalityInfo& lhs,
const XdsLocalityInfo& rhs) const {
return XdsLocalityName::Less()(lhs.locality_name, rhs.locality_name);
}
};
@ -160,6 +160,8 @@ class ResolvingLoadBalancingPolicy::ResolvingControlHelper
void AddTraceEvent(TraceSeverity severity, const char* message) override {}
void set_child(LoadBalancingPolicy* child) { child_ = child; }
private:
@ -81,7 +81,10 @@ class BaseNode : public RefCounted<BaseNode> {
kSocket,
protected:
BaseNode(EntityType type, UniquePtr<char> name);
public:
virtual ~BaseNode();
// All children must implement this function.