File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -81,8 +81,8 @@ class ReturnCode
8181
8282protected:
8383
84- // ! Link every ReturnCode available with a string to deserialize
85- static const std::map<ReturnCode , std::string> to_string_conversion_;
84+ // ! Link every ReturnCodeValue available with a string to deserialize
85+ static const std::map<ReturnCodeValue , std::string> to_string_conversion_;
8686
8787 // ! \c ReturnCode value
8888 std::uint32_t value_;
Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ bool ReturnCode::operator !() const noexcept
8989 return value_ != ReturnCode::RETCODE_OK ;
9090}
9191
92- const std::map<ReturnCode, std::string> ReturnCode::to_string_conversion_ =
92+ const std::map<ReturnCode::ReturnCodeValue , std::string> ReturnCode::to_string_conversion_ =
9393{
9494 {ReturnCode::RETCODE_OK , " Ok" },
9595 {ReturnCode::RETCODE_ERROR , " Error" },
@@ -103,7 +103,7 @@ std::ostream& operator <<(
103103 std::ostream& os,
104104 const ReturnCode& code)
105105{
106- auto it = ReturnCode::to_string_conversion_.find (code);
106+ auto it = ReturnCode::to_string_conversion_.find (static_cast <ReturnCode::ReturnCodeValue>(( code ())) );
107107 assert (it != ReturnCode::to_string_conversion_.end ());
108108 os << " {" << it->second << " }" ;
109109 return os;
You can’t perform that action at this time.
0 commit comments