Boost C++ Libraries: Ticket #6969: Compilation fails with incomplete type ‘boost::STATIC_ASSERTION_FAILURE<false> https://svn.boost.org/trac10/ticket/6969 <p> OS: Fedora 17 GCC: g++ (GCC) 4.7.0 20120507 (Red Hat 4.7.0-5) </p> <p> Attached is a small code snippet that fails to compile on the system specs listed above. It compiled successfully prior to upgrading from F16 -&gt; F17 (I believe both gcc and boost were upgraded). </p> <p> The code and the resulting console errors are attached. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6969 Trac 1.4.3 Trystan Larey-Williams <trystan@…> Wed, 06 Jun 2012 21:15:23 GMT attachment set https://svn.boost.org/trac10/ticket/6969 https://svn.boost.org/trac10/ticket/6969 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">test.cpp</span> </li> </ul> Ticket Trystan Larey-Williams <trystan@…> Wed, 06 Jun 2012 21:15:40 GMT attachment set https://svn.boost.org/trac10/ticket/6969 https://svn.boost.org/trac10/ticket/6969 <ul> <li><strong>attachment</strong> → <span class="trac-field-new">errors.txt</span> </li> </ul> Ticket Ion Gaztañaga Sat, 09 Jun 2012 08:58:50 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6969#comment:1 https://svn.boost.org/trac10/ticket/6969#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">worksforme</span> </li> </ul> <p> I think the assertion gives you the hint: </p> <p> <em>Allocator type must be std::pair&lt;CONST Key, T&gt; BOOST_STATIC_ASSERT((container_detail::is_same&lt;std::pair&lt;const Key, T&gt;, typename A::value_type&gt;::value)); </em></p> <p> You are not using CONST for allocator pair first param and this is required also for std::map. New boost version added this check to detect the error early. Change your code to: </p> <p> typedef boost::interprocess::pair&lt;const unsigned int, unsigned int&gt; <a class="missing wiki">MyPair</a>; </p> Ticket