Boost C++ Libraries: Ticket #11079: Missing header file in type_erasure/exception.hpp causes several tests in type_erasure to fail https://svn.boost.org/trac10/ticket/11079 <p> Compiling with Oracle Solaris Studio 12.4 on Solaris11.2, several type_erasure tests fail as follows: </p> <p> "../boost/type_erasure/exception.hpp", line 29: Error: Could not find std::invalid_argument::invalid_argument(const char<a class="changeset" href="https://svn.boost.org/trac10/changeset/18" title="*** empty log message *** ">[18]</a>) to initialize base class. "../boost/type_erasure/exception.hpp", line 29: Error: Could not find a match for std::invalid_argument::invalid_argument(boost::type_erasure::bad_function_call, const char<a class="changeset" href="https://svn.boost.org/trac10/changeset/18" title="*** empty log message *** ">[18]</a>) needed in boost::type_erasure::bad_function_call::bad_function_call(). </p> <p> Adding &lt;string&gt; header file to boost/type_erasure/exception.hpp seems to resolve the issue. </p> <p> % diff ./exception.hpp_orig exception.hpp 15a16 </p> <blockquote class="citation"> <p> #include &lt;string&gt; </p> </blockquote> <p> % </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11079 Trac 1.4.3 Steven Watanabe Fri, 06 Mar 2015 15:51:10 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/11079#comment:1 https://svn.boost.org/trac10/ticket/11079#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">duplicate</span> </li> </ul> <p> Duplicates <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/11078" title="#11078: Bugs: Missing header file in type_erasure/exception.hpp causes several tests ... (closed: fixed)">#11078</a> </p> Ticket