Skip to content

Commit 371c628

Browse files
committed
Mark copy and assignment operator as deleted
1 parent a2385ae commit 371c628

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sycl/source/detail/device_global_map.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ class DeviceGlobalMap {
2727
DeviceGlobalMap(bool OwnerControlledCleanup)
2828
: MOwnerControlledCleanup{OwnerControlledCleanup} {}
2929

30-
DeviceGlobalMap(const DeviceGlobalMap &) = default;
31-
DeviceGlobalMap &operator=(const DeviceGlobalMap &) = default;
30+
DeviceGlobalMap(const DeviceGlobalMap &) = delete;
31+
DeviceGlobalMap &operator=(const DeviceGlobalMap &) = delete;
3232

3333
~DeviceGlobalMap() noexcept(false) {
3434
if (!MOwnerControlledCleanup)

0 commit comments

Comments
 (0)