Skip to content

Commit

Permalink
Fixes after merging the dev
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel committed Nov 9, 2023
1 parent 55976fc commit 6aba6b8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/CoreTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ TEST_CASE("attribute_dtype_test", "[core]")
REQUIRE(Datatype::CHAR == a.dtype);
{
// check that copy constructor works
// NOLINTNEXTLINE(performance-unnecessary-copy-initialization)
[[maybe_unused]] Attribute b = a;
}
{
Expand Down
6 changes: 6 additions & 0 deletions test/SerialIOTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,13 @@ struct NonCopyableDeleter : std::function<void(T *)>
{}
NonCopyableDeleter(NonCopyableDeleter const &) = delete;
NonCopyableDeleter &operator=(NonCopyableDeleter const &) = delete;
/*
* MSVC does not recognize these when declaring noexcept and this is
* for a test only anyway.
*/
// NOLINTNEXTLINE(performance-noexcept-move-constructor)
NonCopyableDeleter(NonCopyableDeleter &&) = default;
// NOLINTNEXTLINE(performance-noexcept-move-constructor)
NonCopyableDeleter &operator=(NonCopyableDeleter &&) = default;
};
} // namespace detail
Expand Down

0 comments on commit 6aba6b8

Please sign in to comment.