diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2009-08-13 07:56:51 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2009-08-13 07:56:51 +0000 |
commit | 127094ac3896870c2574545d12524d661f31f177 (patch) | |
tree | 29c42cbcf3123d13cca4d227982b1cb47122fe45 /CIAO/tools | |
parent | af7ad22f6a58b2e50a151db991bd0306670dde1a (diff) | |
download | ATCD-127094ac3896870c2574545d12524d661f31f177.tar.gz |
Thu Aug 13 07:56:29 UTC 2009 Johnny Willemsen <jwillemsen@remedy.nl>
* tools/Config_Handlers/XSCRT/Elements.hpp:
Removed code for vc6
Diffstat (limited to 'CIAO/tools')
-rw-r--r-- | CIAO/tools/Config_Handlers/XSCRT/Elements.hpp | 100 |
1 files changed, 2 insertions, 98 deletions
diff --git a/CIAO/tools/Config_Handlers/XSCRT/Elements.hpp b/CIAO/tools/Config_Handlers/XSCRT/Elements.hpp index be2159de164..f924f8cef93 100644 --- a/CIAO/tools/Config_Handlers/XSCRT/Elements.hpp +++ b/CIAO/tools/Config_Handlers/XSCRT/Elements.hpp @@ -14,49 +14,6 @@ #include <XSCRT/Parser.hpp> #include "ace/Refcounted_Auto_Ptr.h" -#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; -} - -#endif - namespace XSCRT { struct IdentityProvider @@ -246,7 +203,7 @@ namespace XSCRT Type* get_idref (const char* name) { std::basic_string<ACE_TCHAR> name_string (ACE_TEXT_CHAR_TO_TCHAR(name)); - std::map<std::basic_string<ACE_TCHAR>, XSCRT::Type*>::iterator i = + std::map<std::basic_string<ACE_TCHAR>, XSCRT::Type*>::iterator i = this->idref_map_.find(name_string); if (i != idref_map_.end()) { @@ -261,7 +218,7 @@ namespace XSCRT Type* get_idref (const wchar_t *name) { std::basic_string<ACE_TCHAR> name_string (ACE_TEXT_WCHAR_TO_TCHAR(name)); - std::map<std::basic_string<ACE_TCHAR>, XSCRT::Type*>::iterator i = + std::map<std::basic_string<ACE_TCHAR>, XSCRT::Type*>::iterator i = this->idref_map_.find(name_string); if (i != idref_map_.end()) { @@ -569,8 +526,6 @@ namespace XSCRT // // -#if !defined (_MSC_VER) || (_MSC_VER >= 1300) - template<> template<> inline @@ -607,57 +562,6 @@ namespace XSCRT x_ = (a.value () == L"true") || (a.value () == L"1"); } -#else - - template <> - class FundamentalType<bool> : public Type - { - public: - FundamentalType () - { - } - - template<typename C> - FundamentalType (XML::Element<C> const& e) - { - x_ = (e.value ()[0] == 't') || (e.value ()[0] == '1'); - } - - template<typename C> - FundamentalType (XML::Attribute<C> const& a) - { - x_ = (a.value ()[0] == 't') || (a.value ()[0] == '1'); - } - - FundamentalType (bool const& x) - : x_ (x) - { - } - - FundamentalType& - operator= (bool const& x) - { - x_ = x; - return *this; - } - - public: - operator bool const& () const - { - return x_; - } - - operator bool& () - { - return x_; - } - - protected: - bool x_; - }; - -#endif - } #include <XSCRT/Elements.ipp> |