This commit is contained in:
2020-06-23 08:48:54 +02:00
parent 9d3bbc0a68
commit 1d53dc65cd
5 changed files with 46 additions and 23 deletions

View File

@ -434,6 +434,12 @@ class CmdProxy {
return ToStringHex(value);
}
template <typename V> std::string OutStringHex(const V &value, int width) {
if (value.equal())
return ToStringHex(value.front(), width);
return ToStringHex(value, width);
}
template <typename V> std::string OutString(const V &value) {
if (value.equal())
return ToString(value.front());