Opened 7 years ago

Closed 7 years ago

#11827 closed Bugs (fixed)

Multiple declaration for std::exception.

Reported by: Aparna Kumta <aparna.kumta@…> Owned by: John Maddock
Milestone: To Be Determined Component: math
Version: Boost Development Trunk Severity: Problem
Keywords: Cc:

Description

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)

Change History (2)

comment:1 by Aparna Kumta <aparna.kumta@…>, 7 years ago

comment:2 by John Maddock, 7 years ago

Resolution: fixed
Status: newclosed

PR merged.

Note: See TracTickets for help on using tickets.