From 3b694cbb54bad1bf6bd6398d8edf995c73f75f11 Mon Sep 17 00:00:00 2001 From: Roberto Rossini <71787608+robomics@users.noreply.github.com> Date: Thu, 28 Sep 2023 20:22:57 +0200 Subject: [PATCH] Fix ubuntu builds --- .../balancing/include/hictk/balancing/sparse_matrix.hpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/libhictk/balancing/include/hictk/balancing/sparse_matrix.hpp b/src/libhictk/balancing/include/hictk/balancing/sparse_matrix.hpp index f7dd0dd0..fde72faa 100644 --- a/src/libhictk/balancing/include/hictk/balancing/sparse_matrix.hpp +++ b/src/libhictk/balancing/include/hictk/balancing/sparse_matrix.hpp @@ -120,7 +120,11 @@ class SparseMatrixChunked { int compression_lvl = 3); SparseMatrixChunked(const SparseMatrixChunked& other) = delete; - SparseMatrixChunked(SparseMatrixChunked&& other) noexcept(noexcept_move_ctor()) = default; +#if defined(__GNUC__) && !defined(__clang__) && __GNUC__ > 9 + SparseMatrixChunked(SparseMatrixChunked&& other) noexcept = default; +#else + SparseMatrixChunked(SparseMatrixChunked&& other) = default; +#endif ~SparseMatrixChunked() noexcept;