Skip to content

Commit fb87eed

Browse files
authored
Remove usage of deprecated functions (#4028)
1 parent 1c45f9f commit fb87eed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

demos/common/cpp/utils/include/utils/shared_tensor_allocator.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@
2121
struct SharedMatAllocator {
2222
const cv::Mat mat;
2323
void* allocate(size_t bytes, size_t) {return bytes <= mat.rows * mat.step[0] ? mat.data : nullptr;}
24-
void deallocate(void*, size_t, size_t) {}
24+
void deallocate(void*, size_t, size_t) noexcept {}
2525
bool is_equal(const SharedMatAllocator& other) const noexcept {return this == &other;}
2626
};

0 commit comments

Comments
 (0)