|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r53425 - trunk/boost/io
From: ghost_at_[hidden]
Date: 2009-05-30 01:59:09
Author: vladimir_prus
Date: 2009-05-30 01:59:08 EDT (Sat, 30 May 2009)
New Revision: 53425
URL: http://svn.boost.org/trac/boost/changeset/53425
Log:
Add private assignment operators.
Patch from Richard Webb.
This fixes #1414, where msvc complained that default assignment operator
could not be generated. This can be fixed either by pragmas, or by
declaring (but not defining), private assignment operator. The latter
approach seems better, since it's likely to help on other compilers.
Text files modified:
trunk/boost/io/ios_state.hpp | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
Modified: trunk/boost/io/ios_state.hpp
==============================================================================
--- trunk/boost/io/ios_state.hpp (original)
+++ trunk/boost/io/ios_state.hpp 2009-05-30 01:59:08 EDT (Sat, 30 May 2009)
@@ -128,6 +128,7 @@
private:
state_type & s_save_;
aspect_type const a_save_;
+ basic_ios_iostate_saver& operator=(const basic_ios_iostate_saver&);
};
template < typename Ch, class Tr >
@@ -156,6 +157,7 @@
private:
state_type & s_save_;
aspect_type const a_save_;
+ basic_ios_exception_saver& operator=(const basic_ios_exception_saver&);
};
template < typename Ch, class Tr >
@@ -180,6 +182,7 @@
private:
state_type & s_save_;
aspect_type const a_save_;
+ basic_ios_tie_saver& operator=(const basic_ios_tie_saver&);
};
template < typename Ch, class Tr >
@@ -204,6 +207,7 @@
private:
state_type & s_save_;
aspect_type const a_save_;
+ basic_ios_rdbuf_saver& operator=(const basic_ios_rdbuf_saver&);
};
template < typename Ch, class Tr >
@@ -228,6 +232,7 @@
private:
state_type & s_save_;
aspect_type const a_save_;
+ basic_ios_fill_saver& operator=(const basic_ios_fill_saver&);
};
#ifndef BOOST_NO_STD_LOCALE
@@ -253,6 +258,7 @@
private:
state_type & s_save_;
aspect_type const a_save_;
+ basic_ios_locale_saver& operator=(const basic_ios_locale_saver&);
};
#endif
@@ -392,6 +398,8 @@
#ifndef BOOST_NO_STD_LOCALE
::std::locale const a9_save_;
#endif
+
+ basic_ios_all_saver& operator=(const basic_ios_all_saver&);
};
class ios_all_word_saver
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk