So I have this really ugly code:
template std::conditional_t
Something like this perhaps:
template struct SuitablySized; template<> struct SuitablySized { typedef char type; }; template<> struct SuitablySized { typedef short type; }; // Add more cases to taste template typename SuitablySized::type foo(T bar);