57 namespace io_operators
65 if (tmp <= std::numeric_limits<int8>::max ())
66 value =
static_cast<int8> (tmp);
68 istream.setstate (std::ios_base::failbit);
78 if (tmp <= std::numeric_limits<uint8>::max ())
79 value =
static_cast<uint8> (tmp);
81 istream.setstate (std::ios_base::failbit);
88 return (ostream <<
static_cast<int16> (value));
93 return (ostream <<
static_cast<uint16> (value));
std::ostream & operator<<(std::ostream &ostream, int8 value)
std::istream & operator>>(std::istream &istream, int8 &value)