Skip to content

Commit

Permalink
make destructor noexcept
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Oct 10, 2016
1 parent b9b1f39 commit b31e8fd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gsl_vector.cpp
Expand Up @@ -92,7 +92,7 @@ GSL_vector::GSL_vector(std::initializer_list<double> list)
std::copy(list.begin(), list.end(), gsl_vector_ptr(vec, 0));
}

GSL_vector::~GSL_vector()
GSL_vector::~GSL_vector() noexcept
{
gsl_vector_free(vec);
}
Expand Down
2 changes: 1 addition & 1 deletion src/gsl_vector.hpp
Expand Up @@ -35,7 +35,7 @@ class GSL_vector {
GSL_vector(const GSL_vector&);
GSL_vector(GSL_vector&&) noexcept;
GSL_vector(std::initializer_list<double>);
~GSL_vector();
~GSL_vector() noexcept;

const GSL_vector& operator=(const GSL_vector&);
GSL_vector& operator=(GSL_vector&&) noexcept;
Expand Down

0 comments on commit b31e8fd

Please sign in to comment.