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()); /**