Boost C++ Libraries: Ticket #11787: fusion for_each turns array reference const on msvc https://svn.boost.org/trac10/ticket/11787 <p> On MSVC 2013 (I have not tested any other versions) arrays are always const references, instead of non-const ones. Thus code that needs to modify the array and doesn't have a const overload fails to compile. </p> <p> I don't know if the issue concerns other parts than for_each </p> <p> A simple test case is attached </p> <p> Expected output (as seen when using gcc/clang): </p> <pre class="wiki">Int Char [10] </pre><p> Output using msvc 2013: </p> <pre class="wiki">Int Const Char[10] </pre><p> I have tested it against boost 1.59 and a fresh git clone. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11787 Trac 1.4.3 imer <imer@…> Sun, 08 Nov 2015 08:17:42 GMT attachment set https://svn.boost.org/trac10/ticket/11787 https://svn.boost.org/trac10/ticket/11787 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">test.cpp</span> </li> </ul> <p> Simple test case </p> Ticket Kohei Takahashi <flast@…> Wed, 09 Mar 2016 11:12:16 GMT <link>https://svn.boost.org/trac10/ticket/11787#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11787#comment:1</guid> <description> <p> VC14 works as expected, but VC11 don't. In addition Boost.<a class="missing wiki">TypeOf</a> works all of VC11, VC12 and VC14. </p> </description> <category>Ticket</category> </item> </channel> </rss>