I'm designing c++/CLI library with many dll's and internal usage of opencv. OpenCV matrices are passed between theese dll and that is origin of my question:
Do you how to force cv::Mat to behave similar to std::unique_ptr, std::shared_ptr and std::weak_ptr?
A far as I know cv::Mat behave similar to std::shared_ptr (with reference counter), but what about other types of smart pointers?
cv::Mat
is a C++ wrapper forCvMat
(C counterpart) then maybe you could make your ownUniqueMat
wrapper with deleted copy constructor or whatever features you need. I guess it might be a little more work, though. – slawekwin