Boost C++ Libraries: Ticket #1523: [iostreams] VC8/VC9 compiler warnings https://svn.boost.org/trac10/ticket/1523 <p> iostreams produces a couple of compiler warnings when built in the MS compilers using warning level 4 and/or code analysis: </p> <pre class="wiki">boost\iostreams\detail\functional.hpp(105) : warning C4512: 'boost::iostreams::detail::member_close_operation&lt;T&gt;' : assignment operator could not be generated boost\iostreams\traits.hpp(48) : warning C6334: sizeof operator applied to an expression with an operator might yield unexpected results </pre><p> Noticed when running the regression tests. Some examples of the full warnings can be seen at <a class="ext-link" href="http://tinyurl.com/3xe4rt"><span class="icon">​</span>http://tinyurl.com/3xe4rt</a> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/1523 Trac 1.4.3 Jonathan Turkanis Tue, 25 Dec 2007 05:44:43 GMT status changed https://svn.boost.org/trac10/ticket/1523#comment:1 https://svn.boost.org/trac10/ticket/1523#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> <p> I eliminated all but a few VC 8.0 warnings with warning level 4 in <a class="changeset" href="https://svn.boost.org/trac10/changeset/42290" title="I. Eliminated most VC8.0-9.0 and some BCB iostreams warnings. This ...">[42290]</a>, <a class="changeset" href="https://svn.boost.org/trac10/changeset/42291" title="These files were left out of the last iostreams commit. Corrected ...">[42291]</a>, and <a class="changeset" href="https://svn.boost.org/trac10/changeset/42293" title="disabled VC8.0-9.0 warning 4512 (assignment operator could not be ...">[42293]</a>. I could not reproduce warning C6334 on VC8.0. </p> Ticket Richard Webb <richard.webb@…> Tue, 25 Dec 2007 13:54:18 GMT <link>https://svn.boost.org/trac10/ticket/1523#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/1523#comment:2</guid> <description> <p> C6334 only happens when the code analysis option is enabled (only available on some versions of visual studio - not in the express version at least). </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Jonathan Turkanis</dc:creator> <pubDate>Sun, 25 May 2008 23:39:53 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/1523#comment:3 https://svn.boost.org/trac10/ticket/1523#comment:3 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> </ul> <p> I have fixed a couple of additional unreferenced parameter warnings and a warning about operator, in detail/is_incrementable.hpp (see <a class="changeset" href="https://svn.boost.org/trac10/changeset/45754" title="silenced warning about comma operator (C4913) for VC 8-9 with warning ...">[45754]</a>) </p> <p> The only remaining warnings I see are 4275, which I don't know how to fix without disabling similar warnings in user code. </p> <p> I am closing this ticket now; please report any remaining warnings in a new ticket. </p> Ticket