template<typename T>
concept ThriftStruct =
requires(T& value,
const T& constant, apache::thrift::protocol::TProtocol* protocol) {
{ value.read(protocol) } -> std::convertible_to<uint32_t>;
{ constant.write(protocol) } -> std::convertible_to<uint32_t>;
}
Thrift structure: generated by thrift –gen cpp ( read and write with a protocol)
- Template Parameters
-
- Since
- 0.2