Boost C++ Libraries: Ticket #3588: boost\io\ios_state.hpp(256) : warning C4512: 'boost::io::basic_ios_locale_saver<Ch>' : assignment operator could not be generated https://svn.boost.org/trac10/ticket/3588 <p> This is simple issue. </p> <p> Here is a patch: </p> <p> Index: io/ios_state.hpp =================================================================== --- io/ios_state.hpp (revision 66) +++ io/ios_state.hpp (working copy) @@ -226,6 +226,9 @@ </p> <blockquote> <p> { s_save_.fill( a_save_ ); } </p> </blockquote> <p> </p> <blockquote> <p> private: </p> </blockquote> <p> + typedef basic_ios_fill_saver this_type; + this_type&amp; operator=(this_type const&amp;); + </p> <blockquote> <p> state_type &amp; s_save_; aspect_type const a_save_; </p> </blockquote> <blockquote> <p> }; </p> </blockquote> <p> @@ -251,6 +254,9 @@ </p> <blockquote> <p> { s_save_.imbue( a_save_ ); } </p> </blockquote> <p> </p> <blockquote> <p> private: </p> </blockquote> <p> + typedef basic_ios_locale_saver this_type; + this_type&amp; operator=(this_type const&amp;); + </p> <blockquote> <p> state_type &amp; s_save_; aspect_type const a_save_; </p> </blockquote> <blockquote> <p> }; </p> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3588 Trac 1.4.3 Seweryn Habdank-Wojewodzki <seweryn@…> Wed, 04 Nov 2009 19:30:43 GMT attachment set https://svn.boost.org/trac10/ticket/3588 https://svn.boost.org/trac10/ticket/3588 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">boost_io.patch</span> </li> </ul> <p> Patch for the problem </p> Ticket rwebb <richard.webb@…> Wed, 04 Nov 2009 21:16:52 GMT <link>https://svn.boost.org/trac10/ticket/3588#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3588#comment:1</guid> <description> <p> Are you seeing these warnings on Trunk, or just with the current release? </p> <p> The fix for <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1414" title="#1414: Feature Requests: Warning suppression desirable for ios_state (closed: fixed)">#1414</a> fixed a load of warnings in ios_state.hpp, but that doesn't seem to have been merged to release. I'll mention it on the mailing list. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Steven Watanabe</dc:creator> <pubDate>Thu, 05 Nov 2009 17:42:12 GMT</pubDate> <title>component changed; owner set https://svn.boost.org/trac10/ticket/3588#comment:2 https://svn.boost.org/trac10/ticket/3588#comment:2 <ul> <li><strong>owner</strong> set to <span class="trac-author">Daryle Walker</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">io</span> </li> </ul> Ticket Seweryn Habdank-Wojewodzki <seweryn@…> Thu, 05 Nov 2009 19:37:40 GMT <link>https://svn.boost.org/trac10/ticket/3588#comment:3 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3588#comment:3</guid> <description> <p> Hi, </p> <blockquote class="citation"> <p> Are you seeing these warnings on Trunk, or just with the current release? </p> </blockquote> <p> Boost 1.40. In the trunk the code is fixed, sorry for the mess. </p> <blockquote class="citation"> <p> The fix for <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/1414" title="#1414: Feature Requests: Warning suppression desirable for ios_state (closed: fixed)">#1414</a> fixed a load of warnings in ios_state.hpp, but that doesn't seem to have been merged to release. I'll mention it on the mailing list. </p> </blockquote> <p> Hmm... it is strange ... that ticked was for version 1.36 now we have 1.40 :-). </p> <p> Best regards, </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Daniel James</dc:creator> <pubDate>Wed, 06 Jan 2010 08:51:45 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/3588#comment:4 https://svn.boost.org/trac10/ticket/3588#comment:4 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">duplicate</span> </li> </ul> Ticket