Skip to content

Commit

Permalink
Replace throw() dynamic exception specifier with noexcept
Browse files Browse the repository at this point in the history
throw() dynamic exeption specifier was deprecated in C++11 and finally
removed in C++17. Use noexcept / noexcept(expression) instead.

Signed-off-by: David Abdurachmanov <David.Abdurachmanov@cern.ch>
  • Loading branch information
David Abdurachmanov authored and David Abdurachmanov committed Feb 8, 2017
1 parent 7ec5f31 commit c062f62
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -100,7 +100,7 @@ class BackgroundHandler
/// Used to check the consistency of passed parameters
void consistencyCheck( const std::vector<int> & identifiers,
const std::vector<double> & leftWindowBorders,
const std::vector<double> & rightWindowBorders ) const throw(cms::Exception);
const std::vector<double> & rightWindowBorders ) const noexcept(false);

// Correspondence between regions and halfWidths used:
// - for the Upsilons region we use the Upsilon
Expand Down
Expand Up @@ -273,7 +273,7 @@ void BackgroundHandler::countEventsInAllWindows(const std::vector<std::pair<reco

void BackgroundHandler::consistencyCheck(const std::vector<int> & identifiers,
const std::vector<double> & leftWindowBorders,
const std::vector<double> & rightWindowBorders) const throw(cms::Exception)
const std::vector<double> & rightWindowBorders) const noexcept(false)
{
if( leftWindowBorders.size() != rightWindowBorders.size() ) {
throw cms::Exception("Configuration") << "BackgroundHandler::BackgroundHandler: leftWindowBorders.size() = " << leftWindowBorders.size()
Expand Down

0 comments on commit c062f62

Please sign in to comment.