Boost C++ Libraries: Ticket #11096: libs/log/src/threadsafe_queue.cpp fails with ' The type "boost::STATIC_ASSERTION_FAILURE<0>" is incomplete. ' https://svn.boost.org/trac10/ticket/11096 <p> Compiling libs/log/src/threadsafe_queue.cpp on Oracle Solaris Studio12.4 on Solaris x86 11.2 we see </p> <p> "../boost/type_traits/type_with_alignment.hpp", line 164: Error: The type "boost::STATIC_ASSERTION_FAILURE&lt;0&gt;" is incomplete. "../boost/type_traits/type_with_alignment.hpp", line 176: Where: While specializing "boost::detail::type_with_alignment_imp&lt;8&gt;". "../boost/type_traits/type_with_alignment.hpp", line 176: Where: Specialized in boost::type_with_alignment&lt;8&gt;. "../boost/log/detail/threadsafe_queue.hpp", line 56: Where: Specialized in non-template code. "../boost/type_traits/type_with_alignment.hpp", line 165: Error: The type "boost::STATIC_ASSERTION_FAILURE&lt;0&gt;" is incomplete. "../boost/type_traits/type_with_alignment.hpp", line 176: Where: While specializing "boost::detail::type_with_alignment_imp&lt;8&gt;". "../boost/type_traits/type_with_alignment.hpp", line 176: Where: Specialized in boost::type_with_alignment&lt;8&gt;. "../boost/log/detail/threadsafe_queue.hpp", line 56: Where: Specialized in non-template code. 2 Error(s) detected. </p> <p> The following change to libs/type_traits/include/boost/type_traits/type_with_alignment.hpp resolves the error. </p> <p> % diff ./type_with_alignment.hpp_orig ./type_with_alignment.hpp_new 179c179 &lt; #if defined(<span class="underline">GNUC</span>) --- </p> <blockquote class="citation"> <table class="wiki"> <tr>#if defined(<span class="underline">GNUC</span>) <td> (defined (<span class="underline">SUNPRO_CC) &amp;&amp; (</span>SUNPRO_CC &gt;= 0x5130)) </td></tr></table> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11096 Trac 1.4.3 John Maddock Thu, 12 Mar 2015 19:31:39 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/11096#comment:1 https://svn.boost.org/trac10/ticket/11096#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> Thanks for the patch, applied. </p> Ticket