Boost C++ Libraries: Ticket #11827: Multiple declaration for std::exception. https://svn.boost.org/trac10/ticket/11827 <p> There are 5 failing tests in libs/math/examples when compiling with Oracle Solaris Studio with -std=c++11 option, which currently have the same failure: </p> <p> "../example/binomial_quiz_example.cpp", line 42: Error: Multiple declaration for std::exception. "../example/error_handling_example.cpp", line 67: Error: Multiple declaration for std::exception. "../example/error_policy_example.cpp", line 34: Error: Multiple declaration for std::exception. "../example/find_mean_and_sd_normal.cpp", line 40: Error: Multiple declaration for std::exception. "../example/find_root_example.cpp", line 33: Error: Multiple declaration for std::exception. </p> <p> and couple of those examples also have another failure: </p> <p> "../example/binomial_quiz_example.cpp", line 417: Error: what is not a member of const exception. "../example/find_mean_and_sd_normal.cpp", line 374: Error: what is not a member of const exception. </p> <p> Those failures have the same cause as described inside boost ticket <a class="closed ticket" href="https://svn.boost.org/trac10/ticket/10975" title="#10975: Bugs: The name exception is ambiguous, exception and std::exception. (closed: fixed)">#10975</a> but for another Boost source. All of them can be easily fixed by commenting line: </p> <p> <em>using std::exception </em></p> <p> and in addition last 2 tests with 'what is not a member' failure need 1 line replacement of: </p> <p> &lt; catch(const exception&amp; e) --- </p> <blockquote class="citation"> <blockquote> <p> catch(const std::exception&amp; e) </p> </blockquote> </blockquote> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/11827 Trac 1.4.3 Aparna Kumta <aparna.kumta@…> Tue, 01 Dec 2015 19:09:37 GMT <link>https://svn.boost.org/trac10/ticket/11827#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/11827#comment:1</guid> <description> <p> PR submitted: <a class="ext-link" href="https://github.com/boostorg/math/pull/19"><span class="icon">​</span>https://github.com/boostorg/math/pull/19</a> </p> </description> <category>Ticket</category> </item> <item> <dc:creator>John Maddock</dc:creator> <pubDate>Thu, 03 Dec 2015 10:19:41 GMT</pubDate> <title>status changed; resolution set https://svn.boost.org/trac10/ticket/11827#comment:2 https://svn.boost.org/trac10/ticket/11827#comment:2 <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> PR merged. </p> Ticket