Boost C++ Libraries: Ticket #10448: MSVC bug with default argument passing - a workaround is required https://svn.boost.org/trac10/ticket/10448 <p> MSVC 2010-2013 for x64 may pass default values incorrectly. </p> <p> I met this bug with such innocent code: </p> <pre class="wiki">std::wcout &lt;&lt; boost::filesystem::path(L"ABC"); </pre><p> and got hieroglyphs around ABC instead of quotation marks. </p> <p> To workaround the bug: just add <strong>(Char)</strong> prior to default values in the declaration of boost::io::detail::quote (boost/io/detail/quoted_manip.hpp) </p> <pre class="wiki"> // manipulator for const std::basic_string&amp; template &lt;class Char, class Traits, class Alloc&gt; detail::quoted_proxy&lt;std::basic_string&lt;Char, Traits, Alloc&gt; const &amp;, Char&gt; quoted(const std::basic_string&lt;Char, Traits, Alloc&gt;&amp; s, Char escape=(Char)'\\', Char delim=(Char)'\"'); // manipulator for non-const std::basic_string&amp; template &lt;class Char, class Traits, class Alloc&gt; detail::quoted_proxy&lt;std::basic_string&lt;Char, Traits, Alloc&gt; &amp;, Char&gt; quoted(std::basic_string&lt;Char, Traits, Alloc&gt;&amp; s, Char escape=(Char)'\\', Char delim=(Char)'\"'); // manipulator for const C-string* template &lt;class Char&gt; detail::quoted_proxy&lt;const Char*, Char&gt; quoted(const Char* s, Char escape=(Char)'\\', Char delim=(Char)'\"'); </pre><p> I did not scan other sources with similar problem; could you please check them yourselves? </p> <p> P.S. GODDAMN! Your tracker disallows me to tell you the detailed description of the MSVC bug on its tracker. It treats the URL as spam. Please combine the URL from these pieces: </p> <p> <code>connect.microsoft.com /VisualStudio /feedbackdetail /view / 962812</code> </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/10448 Trac 1.4.3 merkin@… Wed, 03 Sep 2014 12:51:22 GMT attachment set https://svn.boost.org/trac10/ticket/10448 https://svn.boost.org/trac10/ticket/10448 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">quoted_manip.hpp</span> </li> </ul> <p> the patched version of the boost/io/detail/quoted_manip.hpp </p> Ticket viboes Wed, 10 Sep 2014 12:30:30 GMT component changed; owner set https://svn.boost.org/trac10/ticket/10448#comment:1 https://svn.boost.org/trac10/ticket/10448#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Beman Dawes</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">filesystem</span> </li> </ul> Ticket