Workaround a bogus MSVC warning

This commit is contained in:
Victor Zverovich 2018-11-30 13:47:04 -08:00
parent b8b06e3e10
commit 9dcf127fa5

View File

@ -136,12 +136,14 @@ int safe_strerror(
ERANGE : result;
}
#if !FMT_MSC_VER
// Fallback to strerror if strerror_r and strerror_s are not available.
int fallback(internal::null<>) {
errno = 0;
buffer_ = strerror(error_code_);
return errno;
}
#endif
public:
dispatcher(int err_code, char *&buf, std::size_t buf_size)