Add ostream operator for SecurityType
This commit is contained in:
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));
|
||||
Reference in new issue
Block a user