I\'m looking for a way to convert hex(hexadecimal) to dec(decimal) easily. I found an easy way to do this like :
hex
dec
I use this:
template bool fromHex(const std::string& hexValue, T& result) { std::stringstream ss; ss << std::hex << hexValue; ss >> result; return !ss.fail(); }