Skip to content

Commit

Permalink
make move constructor noexcept
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Aug 21, 2016
1 parent f8d34e0 commit 4c82e15
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 @@ -42,7 +42,7 @@ GSL_vector::GSL_vector(const GSL_vector& other)
gsl_vector_memcpy(vec, other.vec);
}

GSL_vector::GSL_vector(GSL_vector&& other)
GSL_vector::GSL_vector(GSL_vector&& other) noexcept
{
vec = other.vec;
other.vec = NULL;
Expand Down
2 changes: 1 addition & 1 deletion src/gsl_vector.hpp
Expand Up @@ -29,7 +29,7 @@ class GSL_vector {
GSL_vector();
explicit GSL_vector(std::size_t);
GSL_vector(const GSL_vector&);
GSL_vector(GSL_vector&&);
GSL_vector(GSL_vector&&) noexcept;
~GSL_vector();

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

0 comments on commit 4c82e15

Please sign in to comment.