Skip to content

Commit 69df3e2

Browse files
committed
acl_device_binary: fix missing assignment operator
> Class "acl_device_binary_t" owns resources that are freed in its > destructor but has no user-written assignment operator. Signed-off-by: Peter Colberg <[email protected]>
1 parent 17d8f6b commit 69df3e2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

include/acl_device_binary.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ class acl_device_program_info_t;
2424
// .aocr file).
2525
class acl_device_binary_t {
2626
public:
27+
acl_device_binary_t() = default;
28+
acl_device_binary_t(const acl_device_binary_t &) = delete;
29+
acl_device_binary_t &operator=(const acl_device_binary_t &) = delete;
30+
2731
~acl_device_binary_t() { unload_content(); }
2832

2933
inline void set_dev_prog(acl_device_program_info_t *dev_prog) {

0 commit comments

Comments
 (0)