From 7b65f81a41032bea1a8d7ef7f7775a781667af63 Mon Sep 17 00:00:00 2001 From: Patrick Stotko Date: Tue, 2 Apr 2024 17:57:30 +0200 Subject: [PATCH] deque: Add nodiscard attribute to create* API --- src/stdgpu/deque.cuh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/stdgpu/deque.cuh b/src/stdgpu/deque.cuh index f955c1df3..fd1cf2266 100644 --- a/src/stdgpu/deque.cuh +++ b/src/stdgpu/deque.cuh @@ -80,7 +80,7 @@ public: * \return A newly created object of this class allocated on the GPU (device) * \pre capacity > 0 */ - static deque + [[nodiscard]] static deque createDeviceObject(const index_t& capacity, const Allocator& allocator = Allocator()); /** @@ -93,7 +93,7 @@ public: */ template >)> - static deque + [[nodiscard]] static deque createDeviceObject(ExecutionPolicy&& policy, const index_t& capacity, const Allocator& allocator = Allocator()); /**