mirror of
https://github.com/boostorg/io.git
synced 2025-07-29 20:07:13 +02:00
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. [SVN r53425]
This commit is contained in:
@ -128,6 +128,7 @@ public:
|
||||
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 @@ public:
|
||||
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 @@ public:
|
||||
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 @@ public:
|
||||
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 @@ public:
|
||||
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 @@ public:
|
||||
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 @@ private:
|
||||
#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
|
||||
|
Reference in New Issue
Block a user