Boost C++ Libraries: Ticket #12838: Invalid assignment in iostreams large_file_test.cpp https://svn.boost.org/trac10/ticket/12838 <p> /libs/iostreams/test/large_file_test.cpp, line 337 char buf<a class="changeset" href="https://svn.boost.org/trac10/changeset/1" title="Import core sources for SVNmanger 0.38 ">[1]</a> = { z + 1 }; <em> z is type int </em></p> <p> The implicit narrowing conversion from int to char is an error in C++11. With Clang and Oracle Studio it is an unconditional error. With EDG-based compilers, it is an error if you specify strict compliance. </p> <p> The fix is trivial: char buf<a class="changeset" href="https://svn.boost.org/trac10/changeset/1" title="Import core sources for SVNmanger 0.38 ">[1]</a> = { char(z + 1) }; </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12838 Trac 1.4.3 anonymous Tue, 14 Feb 2017 21:40:28 GMT summary changed https://svn.boost.org/trac10/ticket/12838#comment:1 https://svn.boost.org/trac10/ticket/12838#comment:1 <ul> <li><strong>summary</strong> <span class="trac-field-old">Invalid initializer in iostreams/large_file_terst</span> → <span class="trac-field-new">Invalid assignment in iostreams/large_file_terst</span> </li> </ul> Ticket ste Tue, 14 Feb 2017 21:41:51 GMT summary changed https://svn.boost.org/trac10/ticket/12838#comment:2 https://svn.boost.org/trac10/ticket/12838#comment:2 <ul> <li><strong>summary</strong> <span class="trac-field-old">Invalid assignment in iostreams/large_file_terst</span> → <span class="trac-field-new">Invalid assignment in iostreams large_file_test.cpp</span> </li> </ul> Ticket