Fix hex_functions compile errors
This commit is contained in:
		
							parent
							
								
									bb0b767ba4
								
							
						
					
					
						commit
						e36dae20b7
					
				@ -57,10 +57,10 @@ namespace omni
 | 
			
		||||
      return "FF";
 | 
			
		||||
 | 
			
		||||
    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::string result(stream.str());
 | 
			
		||||
    std::transform(str.begin(), str.end(), str.begin(), ::toupper);
 | 
			
		||||
    std::transform(result.begin(), result.end(), result.begin(), ::toupper);
 | 
			
		||||
 | 
			
		||||
    return result;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
@ -6,6 +6,8 @@
 | 
			
		||||
#include <iostream>
 | 
			
		||||
#include <algorithm>
 | 
			
		||||
#include <string>
 | 
			
		||||
#include <iomanip>
 | 
			
		||||
#include <sstream>
 | 
			
		||||
 | 
			
		||||
namespace omni
 | 
			
		||||
{
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user