mirror of
https://github.com/ToruNiina/toml11.git
synced 2025-12-16 03:08:52 +08:00
add format_error(toml::value, msg, comment)
This commit is contained in:
@@ -800,5 +800,11 @@ inline bool operator>=(const toml::value& lhs, const toml::value& rhs)
|
|||||||
return !(lhs < rhs);
|
return !(lhs < rhs);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline std::string format_error(const toml::value& v,
|
||||||
|
const std::string& error_msg, const std::string& comment)
|
||||||
|
{
|
||||||
|
return detail::format_underline(error_msg, detail::get_region(v), comment);
|
||||||
|
}
|
||||||
|
|
||||||
}// toml
|
}// toml
|
||||||
#endif// TOML11_VALUE
|
#endif// TOML11_VALUE
|
||||||
|
|||||||
Reference in New Issue
Block a user