Fix hex_functions compile errors

This commit is contained in:
oldmud0 2018-07-05 21:26:05 -05:00
parent bb0b767ba4
commit e36dae20b7
2 changed files with 4 additions and 2 deletions

View File

@ -57,10 +57,10 @@ namespace omni
return "FF"; return "FF";
std::stringstream stream; std::stringstream stream;
stream << std::setfill ('0') << std::setw(sizeof(char)*2) stream << std::setfill('0') << std::setw(sizeof(char)*2)
<< std::hex << input; << std::hex << input;
std::string result(stream.str()); std::string result(stream.str());
std::transform(str.begin(), str.end(), str.begin(), ::toupper); std::transform(result.begin(), result.end(), result.begin(), ::toupper);
return result; return result;
} }

View File

@ -6,6 +6,8 @@
#include <iostream> #include <iostream>
#include <algorithm> #include <algorithm>
#include <string> #include <string>
#include <iomanip>
#include <sstream>
namespace omni namespace omni
{ {