fix: workaround for windows.h that defines min/max

related to #123
This commit is contained in:
ToruNiina
2020-07-10 15:07:13 +09:00
parent 9633e5fe5a
commit 761e576991
2 changed files with 3 additions and 3 deletions

View File

@@ -498,7 +498,7 @@ inline std::string format_underline(const std::string& message,
{
// invalid
// ~~~~~~~
const auto underline_len = std::min(reg->size(), reg->line().size());
const auto underline_len = (std::min)(reg->size(), reg->line().size());
retval << color::bold << color::red
<< make_string(underline_len, '~') << color::reset;
}