From 314d2d53750cb8b50c8d23f38028ac43f962bd42 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 16 Sep 2022 22:47:44 -0400 Subject: Fix prevention of automatic move --- test/.clang-tidy | 1 - test/test_hilbert.cpp | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/.clang-tidy b/test/.clang-tidy index 77149fb..f0d389e 100644 --- a/test/.clang-tidy +++ b/test/.clang-tidy @@ -7,6 +7,5 @@ Checks: > -cppcoreguidelines-pro-bounds-array-to-pointer-decay, -hicpp-no-array-decay, -llvm-header-guard, - -performance-no-automatic-move, -readability-identifier-length, InheritParentConfig: true diff --git a/test/test_hilbert.cpp b/test/test_hilbert.cpp index 1ed6f8c..8aacd96 100644 --- a/test/test_hilbert.cpp +++ b/test/test_hilbert.cpp @@ -69,7 +69,8 @@ to_big_int(const T& vec) mpz_t ia; mpz_init(ia); mpz_import(ia, vec.num_racks(), -1, sizeof(Rack), 0, 0, vec.data()); - const mpz_class num(ia); + + mpz_class num{ia}; mpz_clear(ia); return num; } -- cgit v1.2.1