seznam / SuperiorMySqlpp

SuperiorMySQL++
GNU Lesser General Public License v3.0
31 stars 20 forks source link

makeHexString suitable for std::string #79

Closed smradCZ closed 6 years ago

smradCZ commented 6 years ago

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.