MCPcopy Create free account
hub / github.com/c42f/tinyformat / convertToInt

Class convertToInt

tinyformat.h:261–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

259// throws an error.
260template<typename T, bool convertible = is_convertible<T,int>::value>
261struct convertToInt
262{
263 static int invoke(const T& /*value*/)
264 {
265 TINYFORMAT_ERROR("tinyformat: Cannot convert from argument type to "
266 "integer for use as variable width or precision");
267 return 0;
268 }
269};
270// Specialization for convertToInt when conversion is possible
271template<typename T>
272struct convertToInt<T,true>

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected