From 226fc7996256ff26f5c04ea25b267b6433d82ba6 Mon Sep 17 00:00:00 2001 From: David Cortes Date: Fri, 29 Nov 2024 10:26:39 +0100 Subject: [PATCH] delete operators to avoid rule-of-three violation warning --- cpp/oneapi/dal/detail/sparse_matrix_handle_impl.hpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cpp/oneapi/dal/detail/sparse_matrix_handle_impl.hpp b/cpp/oneapi/dal/detail/sparse_matrix_handle_impl.hpp index 9f382b3dc2a..d644d89dae5 100644 --- a/cpp/oneapi/dal/detail/sparse_matrix_handle_impl.hpp +++ b/cpp/oneapi/dal/detail/sparse_matrix_handle_impl.hpp @@ -33,6 +33,10 @@ class sparse_matrix_handle_impl { virtual ~sparse_matrix_handle_impl(); + sparse_matrix_handle_impl(sparse_matrix_handle_impl& other) = delete; + + sparse_matrix_handle_impl& operator=(sparse_matrix_handle_impl& other) = delete; + inline mkl::sparse::matrix_handle_t& get() { return handle_; }