Boost C++ Libraries: Ticket #11566: atomic: int_sizes with MSVC 8 (ARM) problem due to definition of WCHAR_MAX https://svn.boost.org/trac10/ticket/11566 <p> For the Windows CE (ARM compiler) of VC 8 (15.00) the WCHAR_MAX seems also to be defined in a "strange" way: </p> <pre class="wiki">#define WCHAR_MAX ((wchar_t)-1) </pre><p> This causes the <a class="ext-link" href="https://github.com/boostorg/atomic/blob/master/include/boost/atomic/detail/int_sizes.hpp#L123"><span class="icon">​</span>line</a> to break. </p> <p> For me changing the line 120 to </p> <pre class="wiki">#if defined(_MSC_VER) &amp;&amp; ( _MSC_VER &lt;= 1310 || defined(UNDER_CE) &amp;&amp; _MSC_VER &lt;= 1500 ) </pre><p> works. </p> <p> NB: The definition of WCHAR_MAX was changed in 15.01 to #define WCHAR_MAX 0xffff </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11566 Trac 1.4.3 timblechmann Sat, 22 Aug 2015 08:18:49 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/11566#comment:1 https://svn.boost.org/trac10/ticket/11566#comment:1 <ul> <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> </ul> <p> fixed in develop </p> Ticket