ゴミ箱
|
Functions | |
template<typename Target , typename Source > | |
std::optional< Target > | convert (const Source &arg) |
void | log_error (const boost::system::error_code &error) |
void | log_error (const boost::system::error_code &error, const char *prefix) |
Misc. utilities module.
|
inline |
Converts between types using boost::lexical_cast
[in] | arg | Source value |
std::nullopt | On failure |
void utils::log_error | ( | const boost::system::error_code & | error | ) |
Logs Boost error code.
[in] | error | Boost Error Code |
void utils::log_error | ( | const boost::system::error_code & | error, |
const char * | prefix | ||
) |
Logs Boost error code.
[in] | error | Boost Error Code |
[in] | prefix | Prefix of error message. |