[Boost-bugs] [Boost C++ Libraries] #11827: Multiple declaration for std::exception.

Subject: [Boost-bugs] [Boost C++ Libraries] #11827: Multiple declaration for std::exception.
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2015-12-01 18:29:19


#11827: Multiple declaration for std::exception.
-------------------------------------------+-------------------------
 Reporter: Aparna Kumta <aparna.kumta@…> | Owner: johnmaddock
     Type: Bugs | Status: new
Milestone: To Be Determined | Component: math
  Version: Boost Development Trunk | Severity: Problem
 Keywords: |
-------------------------------------------+-------------------------
 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:

 "../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.

 and couple of those examples also have another failure:

 "../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.

 Those failures have the same cause as described inside boost ticket #10975
 but for another Boost source.
 All of them can be easily fixed by commenting line:

 //using std::exception

 and in addition last 2 tests with 'what is not a member' failure need 1
 line replacement of:

 < catch(const exception& e)
 ---
> catch(const std::exception& e)

-- 
Ticket URL: <https://svn.boost.org/trac/boost/ticket/11827>
Boost C++ Libraries <http://www.boost.org/>
Boost provides free peer-reviewed portable C++ source libraries.

This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:19 UTC