core: (fixes #867) Remove noexcept from ValArray/MatrixArray move constructor/assignment

This commit is contained in:
Biljana Bojovic
2023-03-08 23:08:00 +01:00
committed by Tom Henderson
parent df20f5f5e8
commit a811d8c593
4 changed files with 8 additions and 8 deletions

View File

@@ -162,13 +162,13 @@ class MatrixArray : public ValArray<T>
*/
MatrixArray<T>& operator=(const MatrixArray<T>&) = default;
/** instruct the compiler to generate the implicitly declared move constructor*/
MatrixArray<T>(MatrixArray<T>&&) noexcept = default;
MatrixArray<T>(MatrixArray<T>&&) = default;
/**
* \brief Move assignment operator.
* Instruct the compiler to generate the implicitly declared move assignment operator.
* \return a reference to the result of the assignment
*/
MatrixArray<T>& operator=(MatrixArray<T>&&) noexcept = default;
MatrixArray<T>& operator=(MatrixArray<T>&&) = default;
/**
* \brief Element-wise multiplication with a scalar value.
* \param rhs is a scalar value of type T

View File

@@ -158,13 +158,13 @@ class ValArray : public SimpleRefCount<ValArray<T>>
*/
ValArray<T>& operator=(const ValArray<T>&) = default;
/** instruct the compiler to generate the implicitly declared move constructor*/
ValArray<T>(ValArray<T>&&) noexcept = default;
ValArray<T>(ValArray<T>&&) = default;
/**
* \brief Move assignment operator.
* Instruct the compiler to generate the implicitly declared move assignment operator.
* \return a reference to the assigned object
*/
ValArray<T>& operator=(ValArray<T>&&) noexcept = default;
ValArray<T>& operator=(ValArray<T>&&) = default;
/**
* \returns Number of rows
*/

View File

@@ -69,13 +69,13 @@ class MatrixArrayTestCase : public TestCase
* \brief Move constructor.
* Instruct the compiler to generate the implicitly declared move constructor
*/
MatrixArrayTestCase<T>(MatrixArrayTestCase<T>&&) noexcept = default;
MatrixArrayTestCase<T>(MatrixArrayTestCase<T>&&) = default;
/**
* \brief Move assignment operator.
* Instruct the compiler to generate the implicitly declared copy constructor
* \return A reference to this MatrixArrayTestCase
*/
MatrixArrayTestCase<T>& operator=(MatrixArrayTestCase<T>&&) noexcept = default;
MatrixArrayTestCase<T>& operator=(MatrixArrayTestCase<T>&&) = default;
protected:
private:

View File

@@ -67,13 +67,13 @@ class ValArrayTestCase : public TestCase
* \brief Move constructor.
* Instruct the compiler to generate the implicitly declared move constructor
*/
ValArrayTestCase<T>(ValArrayTestCase<T>&&) noexcept = default;
ValArrayTestCase<T>(ValArrayTestCase<T>&&) = default;
/**
* \brief Move assignment operator.
* Instruct the compiler to generate the implicitly declared copy constructor
* \return A reference to this ValArrayTestCase
*/
ValArrayTestCase<T>& operator=(ValArrayTestCase<T>&&) noexcept = default;
ValArrayTestCase<T>& operator=(ValArrayTestCase<T>&&) = default;
private:
void DoRun() override;