Boost C++ Libraries: Ticket #11078: Missing header file in type_erasure/exception.hpp causes several tests in type_erasure to fail https://svn.boost.org/trac10/ticket/11078 <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/11078 Trac 1.4.3 Steven Watanabe Sat, 13 Feb 2016 21:08:23 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/11078#comment:1 https://svn.boost.org/trac10/ticket/11078#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 <a class="ext-link" href="https://github.com/boostorg/type_erasure/commit/883a566ab9d22a5242918b2472e94c0db663b697"><span class="icon">​</span>https://github.com/boostorg/type_erasure/commit/883a566ab9d22a5242918b2472e94c0db663b697</a> </p> Ticket