Boost C++ Libraries: Ticket #5828: Boost Error - any.hpp - incomplete type is not allowed https://svn.boost.org/trac10/ticket/5828 <p> Hi, </p> <p> I am trying to compile my old code in new OS ( HP-UX 11.31 Itanium version ) with combination of aCC compiler. We are using boost 1.31.0 version. We are facing the boost error during compilation. But the same error is not happening in old server. Can you please help us to fix this issue ? </p> <p> "/opt/app/q1app2c4/boost-1.47.0/boost/any.hpp", line 125: error <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/2070" title="#2070: Tasks: Clean up tools list in web site doc section. (closed: fixed)">#2070</a>: </p> <blockquote> <p> incomplete type is not allowed </p> <blockquote> <p> <a class="missing wiki">ValueType</a> held; </p> <blockquote> <p> <sup> </sup></p> </blockquote> </blockquote> <p> detected during: </p> <blockquote> <p> instantiation of class </p> <blockquote> <p> "boost::any::holder&lt;<a class="missing wiki">ValueType</a>&gt; [with <a class="missing wiki">ValueType</a>=Fcif]" at line 32 </p> </blockquote> <p> instantiation of "boost::any::any(const <a class="missing wiki">ValueType</a> &amp;) [with </p> <blockquote> <p> <a class="missing wiki">ValueType</a>=Fcif]" at line 35 of "/opt/app/q1app2c4/src/share/incl/Fcif.h" </p> </blockquote> </blockquote> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/5828 Trac 1.4.3 Steven Watanabe Thu, 14 Feb 2013 18:28:04 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/5828#comment:1 https://svn.boost.org/trac10/ticket/5828#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">invalid</span> </li> </ul> <p> boost::any requires a complete type as the error message indicates. I can't tell you why the type is incomplete, but my best guess is that your code is incorrect and it happened to work with the old compiler because of the order in which it instantiated templates. </p> Ticket