Boost C++ Libraries: Ticket #12260: Bug: time_fmt does not support for wchar_t on windows https://svn.boost.org/trac10/ticket/12260 <p> chrono time_fmt does not support wchar_t on Windows platform. The reason is: </p> <p> In the constructor of ios_base_data_aux, the time_fmt and duration_fmt has been initialized as char_t which causes the visual studio to report errors. These initialization is unnecessary. As a result, comment these two lines of initialization resolves the issue. </p> <blockquote> <p> ios_base_data_aux() : </p> <blockquote> <p> time_fmt(""), duration_fmt("") </p> </blockquote> <p> {} </p> </blockquote> <hr /> <p> 1&gt;c:\home\svn\commonlibs\3rdparty\boost-v1.59.0\include\boost-1_59\boost\chrono\io\ios_base_state.hpp(119) : error C2664: 'std::basic_string&lt;_Elem,_Traits,_Ax&gt;::basic_string(std::basic_string&lt;_Elem,_Traits,_Ax&gt;::_Has_debug_it)' : cannot convert parameter 1 from 'const char <a class="changeset" href="https://svn.boost.org/trac10/changeset/1" title="Import core sources for SVNmanger 0.38 ">[1]</a>' to 'std::basic_string&lt;_Elem,_Traits,_Ax&gt;::_Has_debug_it' 1&gt; with 1&gt; [ 1&gt; _Elem=wchar_t, 1&gt; _Traits=std::char_traits&lt;wchar_t&gt;, 1&gt; _Ax=std::allocator&lt;wchar_t&gt; 1&gt; ] 1&gt; Constructor for struct 'std::basic_string&lt;_Elem,_Traits,_Ax&gt;::_Has_debug_it' is declared 'explicit' 1&gt; with 1&gt; [ 1&gt; _Elem=wchar_t, 1&gt; _Traits=std::char_traits&lt;wchar_t&gt;, 1&gt; _Ax=std::allocator&lt;wchar_t&gt; 1&gt; ] </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/12260 Trac 1.4.3 viboes Mon, 08 Aug 2016 22:44:47 GMT status changed https://svn.boost.org/trac10/ticket/12260#comment:1 https://svn.boost.org/trac10/ticket/12260#comment:1 <ul> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket viboes Fri, 19 Aug 2016 17:43:58 GMT milestone changed https://svn.boost.org/trac10/ticket/12260#comment:2 https://svn.boost.org/trac10/ticket/12260#comment:2 <ul> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.62.0</span> </li> </ul> Ticket viboes Fri, 19 Aug 2016 21:12:29 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/12260#comment:3 https://svn.boost.org/trac10/ticket/12260#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> Ticket