Add ostream operator for SecurityType

This commit is contained in:
John Colvin committed 2024-10-30 19:35:05 +00:00
1 parent 979b2ccb6f
commit 8502b113fe
1 file changed
+12
@@ -13,6 +13,18 @@ namespace bts::api {
PB_ENUM_FROM_JSON(SecurityType)
PB_ENUM_TO_JSON(SecurityType)
std::ostream &operator<<(std::ostream &out, const SecurityType &type) noexcept;
//////////////////////////////////////////////////
// Definition
//////////////////////////////////////////////////
inline std::ostream &operator<<(
std::ostream &out, const SecurityType &type) noexcept {
out << SecurityType_Name(type);
return out;
}
} // namespace bts::api
FMT_IMPL(bts::api::SecurityType, t, "{}", bts::api::SecurityType_Name(t));