diff --git a/ex01/src/Span.cpp b/ex01/src/Span.cpp index 5f9ffe6..9f6e9df 100644 --- a/ex01/src/Span.cpp +++ b/ex01/src/Span.cpp @@ -31,7 +31,7 @@ Span &Span::operator=(const Span &other) return *this; } -Span &&Span::operator=(Span &&other) +Span &&Span::operator=(Span &&other) noexcept { if (this != &other) { @@ -42,7 +42,7 @@ Span &&Span::operator=(Span &&other) return std::move(*this); } -Span::~Span() {} +Span::~Span() noexcept{} void Span::addNumber(int number) {