From 65ef62c697e3dd7d76a095054a0d3b175ba65269 Mon Sep 17 00:00:00 2001 From: Brad King Date: Thu, 9 Jun 2005 08:18:46 -0400 Subject: [PATCH] COMP: Fix no-assignment-operator warning and disable typedef-name synonym warning. --- Source/kwsys/kwsys_ios_sstream.h.in | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Source/kwsys/kwsys_ios_sstream.h.in b/Source/kwsys/kwsys_ios_sstream.h.in index f1eb8bec0..9b4ec6ba2 100644 --- a/Source/kwsys/kwsys_ios_sstream.h.in +++ b/Source/kwsys/kwsys_ios_sstream.h.in @@ -76,6 +76,8 @@ public: static void IgnoreUnusedVariable(const ostringstream_cleanup&) {} protected: ostrstream& m_OStrStream; +private: + void operator=(ostringstream_cleanup const&); }; class ostringstream: public ostrstream @@ -102,6 +104,11 @@ private: void operator=(const ostringstream&); }; +#if defined(_MSC_VER) +# pragma warning (push) +# pragma warning (disable: 4097) /* typedef-name used as synonym for class */ +#endif + class istringstream: private kwsys_stl::string, public istrstream { public: @@ -122,6 +129,10 @@ private: void operator=(const istringstream&); }; +#if defined(_MSC_VER) +# pragma warning (pop) +#endif + } // namespace @KWSYS_NAMESPACE@_ios #endif