MCPcopy Create free account
hub / github.com/ablab/spades / require_numeric_argument

Function require_numeric_argument

ext/src/cppformat/format.cc:219–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

217}
218
219inline void require_numeric_argument(const Arg &arg, char spec) {
220 if (arg.type > Arg::LAST_NUMERIC_TYPE) {
221 std::string message =
222 fmt::format("format specifier '{}' requires numeric argument", spec);
223 FMT_THROW(fmt::FormatError(message));
224 }
225}
226
227template <typename Char>
228void check_sign(const Char *&s, const Arg &arg) {

Callers 2

check_signFunction · 0.85
formatMethod · 0.85

Calls 2

FormatErrorClass · 0.85
formatFunction · 0.50

Tested by

no test coverage detected