google-research / raksha

Apache License 2.0
35 stars 17 forks source link

Directly expose IndexedValue<T>::operator== instead of marking protected and exposing through both subclasses. #875

Closed copybara-service[bot] closed 1 year ago

copybara-service[bot] commented 1 year ago

Directly expose IndexedValue::operator== instead of marking protected and exposing through both subclasses.

In C++20, the protected/subclass-exposed operator== creates ambiguity despite there being a unique best viable function, causing a compiler error.