2002-06-01 19:26:11 +00:00
|
|
|
#include "stdpre.h"
|
2002-06-19 11:23:49 +00:00
|
|
|
#if defined(HAVE_ISTREAM)
|
2002-06-01 19:26:11 +00:00
|
|
|
#include <istream>
|
|
|
|
#else
|
|
|
|
#include <iostream>
|
|
|
|
#endif
|
|
|
|
#include "stdpost.h"
|
|
|
|
|
2002-06-19 11:23:49 +00:00
|
|
|
#if defined(_MSC_VER)
|
2002-06-10 22:06:45 +00:00
|
|
|
// istream has no overloads for __int* types
|
2002-06-01 19:26:11 +00:00
|
|
|
inline
|
|
|
|
std::istream& operator>>(std::istream& s, SInt8& i)
|
|
|
|
{ return s >> (signed char&)i; }
|
|
|
|
inline
|
|
|
|
std::istream& operator>>(std::istream& s, SInt16& i)
|
|
|
|
{ return s >> (short&)i; }
|
|
|
|
inline
|
|
|
|
std::istream& operator>>(std::istream& s, SInt32& i)
|
|
|
|
{ return s >> (int&)i; }
|
|
|
|
inline
|
|
|
|
std::istream& operator>>(std::istream& s, UInt8& i)
|
|
|
|
{ return s >> (unsigned char&)i; }
|
|
|
|
inline
|
|
|
|
std::istream& operator>>(std::istream& s, UInt16& i)
|
|
|
|
{ return s >> (unsigned short&)i; }
|
|
|
|
inline
|
|
|
|
std::istream& operator>>(std::istream& s, UInt32& i)
|
|
|
|
{ return s >> (unsigned int&)i; }
|
|
|
|
#endif
|