Boost C++ Libraries: Ticket #6400: gcc3.4.4(cygwin) code will not compile if macro BOOST_LCAST_NO_WCHAR_T is defined https://svn.boost.org/trac10/ticket/6400 <p> Using compiler gcc 3.4.4 (cygwin) and boost 1.48.0 following code: </p> <pre class="wiki">#include &lt;boost/lexical_cast.hpp&gt; int main(int argc, char * argv[]) { return 0; } </pre><p> will result in compiler error: </p> <pre class="wiki">.../boost_1_48_0/boost/lexical_cast.hpp: In function `bool boost::detail::parse_inf_nan_impl(const CharT*, const CharT*, T&amp;, const CharT*, const CharT*, const CharT*, const CharT*, CharT, CharT)': .../boost_1_48_0/boost/lexical_cast.hpp:651: error: incomplete type `boost::detail::lcast_char_constants&lt;wchar_t&gt;' used in nested name specifier .../boost_1_48_0/boost/lexical_cast.hpp:652: error: incomplete type `boost::detail::lcast_char_constants&lt;wchar_t&gt;' used in nested name specifier </pre><p> It is because if using this compiler, macro BOOST_NO_STD_WSTRING is defined , so.. lexical cast defines BOOST_LCAST_NO_WCHAR_T. </p> <p> Some code is #ifdef'ed with this macro but not all that should. So there is discrepancy. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6400 Trac 1.4.3 Grzegorz Wolszczak <grzechu81@…> Sat, 14 Jan 2012 15:26:04 GMT summary changed https://svn.boost.org/trac10/ticket/6400#comment:1 https://svn.boost.org/trac10/ticket/6400#comment:1 <ul> <li><strong>summary</strong> <span class="trac-field-old">code will not compile if macro BOOST_LCAST_NO_WCHAR_T is defined</span> → <span class="trac-field-new">gcc3.4.4(cygwin) code will not compile if macro BOOST_LCAST_NO_WCHAR_T is defined</span> </li> </ul> Ticket Antony Polukhin Tue, 17 Jan 2012 04:21:44 GMT status, milestone changed; cc, resolution set https://svn.boost.org/trac10/ticket/6400#comment:2 https://svn.boost.org/trac10/ticket/6400#comment:2 <ul> <li><strong>cc</strong> <span class="trac-author">antoshkka@…</span> added </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">fixed</span> </li> <li><strong>milestone</strong> <span class="trac-field-old">To Be Determined</span> → <span class="trac-field-new">Boost 1.49.0</span> </li> </ul> <p> Thanks for reporting an issue. It is already fixed in trunk. This bug is a duplicate for <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/6127" title="#6127: Bugs: lexical_cast in 1.48.0 broken for use on Android platform (wchar_t) (closed: fixed)">#6127</a> </p> Ticket