6 #ifndef KAGOME_CORE_PRIMITIVES_ARITHMETIC_ERROR_HPP 7 #define KAGOME_CORE_PRIMITIVES_ARITHMETIC_ERROR_HPP 25 typename = std::enable_if_t<Stream::is_encoder_stream>>
29 return s << static_cast<uint8_t>(v) - 1;
33 typename = std::enable_if_t<Stream::is_decoder_stream>>
48 #endif // KAGOME_CORE_PRIMITIVES_ARITHMETIC_ERROR_HPP Stream & operator>>(Stream &s, ArithmeticError &v)
OUTCOME_HPP_DECLARE_ERROR(kagome::primitives, ArithmeticError)
Stream & operator<<(Stream &s, const ArithmeticError &v)
libp2p::connection::Stream Stream