mirror of
https://github.com/scylladb/scylladb.git
synced 2026-05-12 19:02:12 +00:00
types: remove recursive constraint in deserialize_value
deserialize_value() has a constraint that depends on another deserialize_value() implementation. Apprently gcc wants to instantiate the deserialize_value() instance we're constraining while evaluating the constraint, leading to a loop. Since this deserialize_value() is just an internal helper, drop the constraint rather than fighting it.
This commit is contained in:
3
types.cc
3
types.cc
@@ -2127,9 +2127,6 @@ sstring deserialize_value(const string_type_impl&, View v) {
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
requires requires (const T& t, bytes_view v) {
|
||||
deserialize_value(t, single_fragmented_view(v));
|
||||
}
|
||||
decltype(auto) deserialize_value(const T& t, bytes_view v) {
|
||||
return deserialize_value(t, single_fragmented_view(v));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user