mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-20 00:20:47 +00:00
db: implement abstract_type::equals()
At present, no overloads are needed because collections are interned, and all other implemented data types are singletons. Tuples and user defined types will need an overload.
This commit is contained in:
6
types.hh
6
types.hh
@@ -196,7 +196,13 @@ public:
|
||||
bool is_value_compatible_with(abstract_type& other) {
|
||||
return is_value_compatible_with_internal(*other.underlying_type());
|
||||
}
|
||||
bool equals(const shared_ptr<abstract_type>& other) const {
|
||||
return equals(*other);
|
||||
}
|
||||
protected:
|
||||
virtual bool equals(const abstract_type& other) const {
|
||||
return this == &other;
|
||||
}
|
||||
/**
|
||||
* Needed to handle ReversedType in value-compatibility checks. Subclasses should implement this instead of
|
||||
* is_value_compatible_with().
|
||||
|
||||
Reference in New Issue
Block a user