How about stringstream?
std::stringstream ss;
ss << std::hex << std::setw (2) << std::setfill ('0')
<< static_cast<int>(static_cast<Byte>(*p++));
out.push_back (ss.str[0]);
out.push_back (ss.str[1]);
Looks better to me, but I have no experience with the `stringstream' class. https://codereview.appspot.com/313930043/ _______________________________________________ lilypond-devel mailing list [email protected] https://lists.gnu.org/mailman/listinfo/lilypond-devel
