diff options
Diffstat (limited to 'TAO/CIAO/tools/Config_Handlers/XSCRT/Elements.hpp')
-rw-r--r-- | TAO/CIAO/tools/Config_Handlers/XSCRT/Elements.hpp | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/TAO/CIAO/tools/Config_Handlers/XSCRT/Elements.hpp b/TAO/CIAO/tools/Config_Handlers/XSCRT/Elements.hpp index 26dfbc8e695..0d84a6bc28a 100644 --- a/TAO/CIAO/tools/Config_Handlers/XSCRT/Elements.hpp +++ b/TAO/CIAO/tools/Config_Handlers/XSCRT/Elements.hpp @@ -12,6 +12,87 @@ #include "XSCRT/Parser.hpp" +#if defined (_MSC_VER) && (_MSC_VER < 1300) + + +// Stuff for broken VC6. Don't like what you see - use better compiler! +// + + +inline +std::wistream& +operator>> (std::wistream& is, __int64& v) +{ + long t; + is >> t; + v = t; + return is; +} + +inline +std::wistream& +operator>> (std::wistream& is, unsigned __int64& v) +{ + unsigned long t; + is >> t; + v = t; + return is; +} + +inline +std::wostream& +operator<< (std::wostream& os, __int64 const& v) +{ + os << long (v); + return os; +} + +inline +std::wostream& +operator<< (std::wostream& os, unsigned __int64 const& v) +{ + os << unsigned long (v); + return os; +} + +inline +std::istream& +operator>> (std::istream& is, __int64& v) +{ + long t; + is >> t; + v = t; + return is; +} + +inline +std::istream& +operator>> (std::istream& is, unsigned __int64& v) +{ + unsigned long t; + is >> t; + v = t; + return is; +} + +inline +std::ostream& +operator<< (std::ostream& os, __int64 const& v) +{ + os << long (v); + return os; +} + +inline +std::ostream& +operator<< (std::ostream& os, unsigned __int64 const& v) +{ + os << unsigned long (v); + return os; +} + +#endif + namespace XSCRT { struct IdentityProvider |