Fix a bogus MSVC warning about unreachable code, take 2

This commit is contained in:
Victor Zverovich
2018-06-04 11:59:59 +02:00
parent 81d5663825
commit 252f11f85d
2 changed files with 29 additions and 8 deletions

View File

@@ -740,8 +740,8 @@ class basic_parse_context : private ErrorHandler {
FMT_CONSTEXPR bool check_arg_id(unsigned) {
if (next_arg_id_ > 0) {
return on_error(
"cannot switch from automatic to manual argument indexing"), false;
on_error("cannot switch from automatic to manual argument indexing");
return false;
}
next_arg_id_ = -1;
return true;