Method makeHexString is usable only for char[] (and maybe custom types supporting std::begin, std::end and default conversion to char[]) but not for C-string represented as const char *, for std::string c_str() method neither.
Also using std::distance for getting item count "Iterable" type should be better than getting it by difference of end and begin iterator.
Method
makeHexString
is usable only forchar[]
(and maybe custom types supporting std::begin, std::end and default conversion to char[]) but not for C-string represented asconst char *
, for std::string c_str() method neither.Also using
std::distance
for getting item count "Iterable" type should be better than getting it by difference of end and begin iterator.