add format_error(toml::value, msg, comment)

This commit is contained in:
ToruNiina
2018-12-16 21:46:32 +09:00
parent 0c08b9e940
commit c15bc8df4a

View File

@@ -800,5 +800,11 @@ inline bool operator>=(const toml::value& lhs, const toml::value& 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
#endif// TOML11_VALUE