ruoruoniao commented on issue #3746:
URL: https://github.com/apache/fory/issues/3746#issuecomment-4676833767
```cpp
template <typename FieldType, typename StructT, size_t Index>
constexpr bool configurable_int_is_fixed() {
if constexpr (is_signed_configurable_int_v<FieldType>) {
return field_int_encoding<FieldType, StructT, Index>() ==
Encoding::Fixed;
} else if constexpr (is_unsigned_configurable_int_v<FieldType>) {
return false;
} else {
return false;
}
}
template <typename FieldType, typename StructT, size_t Index>
constexpr bool configurable_int_is_varint() {
if constexpr (is_signed_configurable_int_v<FieldType>) {
return field_int_encoding<FieldType, StructT, Index>() !=
Encoding::Fixed;
} else if constexpr (is_unsigned_configurable_int_v<FieldType>) {
return true;
} else {
return false;
}
}
```
Maybe like this? ...I dont know...
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]