Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add missing stdexcept header #467

Merged
merged 1 commit into from
Sep 14, 2024
Merged

Conversation

hmenke
Copy link
Contributor

@hmenke hmenke commented Sep 12, 2024

Pull request purpose

Fix compiler errors with some version of libstdc++ (maybe other C++ standard libraries are also affected).

/home/abuild/rpmbuild/BUILD/arpack-ng-3.9.1/TESTS/icb_arpack_cpp.cpp:68:16: error: no member named 'domain_error' in namespace 'std'
   68 |     throw std::domain_error("Error inside ARPACK routines");
      |           ~~~~~^
/home/abuild/rpmbuild/BUILD/arpack-ng-3.9.1/TESTS/icb_arpack_cpp.cpp:76:28: error: no member named 'runtime_error' in namespace 'std'
   76 |   if (info < 0) throw std::runtime_error("Error in seupd, info " + std::to_string(info));
      |                       ~~~~~^
/home/abuild/rpmbuild/BUILD/arpack-ng-3.9.1/TESTS/icb_arpack_cpp.cpp:85:37: error: no member named 'domain_error' in namespace 'std'
   85 |     if (eps > tol_check) throw std::domain_error("Correct eigenvalues not computed");
      |                                ~~~~~^
/home/abuild/rpmbuild/BUILD/arpack-ng-3.9.1/TESTS/icb_arpack_cpp.cpp:142:16: error: no member named 'domain_error' in namespace 'std'
  142 |     throw std::domain_error("Error inside ARPACK routines");
      |           ~~~~~^
/home/abuild/rpmbuild/BUILD/arpack-ng-3.9.1/TESTS/icb_arpack_cpp.cpp:150:28: error: no member named 'runtime_error' in namespace 'std'
  150 |   if (info < 0) throw std::runtime_error("Error in neupd, info " + std::to_string(info));
      |                       ~~~~~^
/home/abuild/rpmbuild/BUILD/arpack-ng-3.9.1/TESTS/icb_arpack_cpp.cpp:162:60: error: no member named 'domain_error' in namespace 'std'
  162 |       if (reps > tol_check || ieps > tol_check) throw std::domain_error("Correct eigenvalues not computed");
      |                                                       ~~~~~^
/home/abuild/rpmbuild/BUILD/arpack-ng-3.9.1/TESTS/icb_arpack_cpp.cpp:174:60: error: no member named 'domain_error' in namespace 'std'
  174 |       if (reps > tol_check || ieps > tol_check) throw std::domain_error("Correct eigenvalues not computed");
      |                                                       ~~~~~^
/home/abuild/rpmbuild/BUILD/arpack-ng-3.9.1/TESTS/icb_arpack_cpp.cpp:177:16: error: no member named 'domain_error' in namespace 'std'
  177 |     throw std::domain_error("The input Ritz option is not allowed in this test file.");
      |           ~~~~~^
8 errors generated.

Detailed changes proposed in this pull request

  • Add missing stdexcept header

@fghoussen
Copy link
Collaborator

Thanks! Can you update the changelog?

@fghoussen fghoussen merged commit e55d3b2 into opencollab:master Sep 14, 2024
22 checks passed
@fghoussen
Copy link
Collaborator

@hmenke Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants