You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error C4716: 'anonymous namespace'::PrecisionHandler::visit_unhandled_arg' : must return a value ..\cppformat\format.cc 334 error C4716: 'anonymous namespace'::WidthHandler::visit_unhandled_arg' : must return a value ..\cppformat\format.cc 312
FMT_NO_RETURN works wrong
FMT_NORETURN
unsigned visit_unhandled_arg() {
FMT_THROW(fmt::FormatError("width is not integer"));
}
Maybe it's better to return something instead?
FMT_NORETURN
unsigned visit_unhandled_arg() {
FMT_THROW(fmt::FormatError("width is not integer"));
return 0
}
Or make some void method?
FMT_NORETURN
void visit_unhandled_arg_noret() {
FMT_THROW(fmt::FormatError("width is not integer"));
}
unsigned visit_unhandled_arg() {
visit_unhandled_arg_noret();
}
The text was updated successfully, but these errors were encountered:
error C4716: '
anonymous namespace'::PrecisionHandler::visit_unhandled_arg' : must return a value ..\cppformat\format.cc 334 error C4716: '
anonymous namespace'::WidthHandler::visit_unhandled_arg' : must return a value ..\cppformat\format.cc 312FMT_NO_RETURN works wrong
FMT_NORETURN
unsigned visit_unhandled_arg() {
FMT_THROW(fmt::FormatError("width is not integer"));
}
Maybe it's better to return something instead?
FMT_NORETURN
unsigned visit_unhandled_arg() {
FMT_THROW(fmt::FormatError("width is not integer"));
return 0
}
Or make some void method?
FMT_NORETURN
void visit_unhandled_arg_noret() {
FMT_THROW(fmt::FormatError("width is not integer"));
}
unsigned visit_unhandled_arg() {
visit_unhandled_arg_noret();
}
The text was updated successfully, but these errors were encountered: