Unverified Commit 253d1385 authored by Sébastien Villemot's avatar Sébastien Villemot
Browse files

Dynare++: mark IntSequence move constructor as noexcept

For better performance where used within containers (e.g. in Smolyak
integration).
parent 11743eff
/*
* Copyright © 2004 Ondra Kamenik
* Copyright © 2019 Dynare Team
* Copyright © 2019-2022 Dynare Team
*
* This file is part of Dynare.
*
......@@ -89,7 +89,7 @@ public:
std::copy_n(s.data, length, data);
}
// Move constructor
IntSequence(IntSequence &&s)
IntSequence(IntSequence &&s) noexcept
: data{std::exchange(s.data, nullptr)}, length{std::exchange(s.length, 0)},
destroy{std::exchange(s.destroy, false)}
{
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment