#ifndef __UINT32_FROM_HEX_H__ #define __UINT32_FROM_HEX_H__ class uint32_from_hex // For use with boost::lexical_cast { typedef unsigned int uint32; uint32 value; public: operator uint32() const { return value; } friend std::istream& operator>>(std::istream& in, uint32_from_hex& outValue) { in >> std::hex >> outValue.value; return in; } }; #endif