vendredi 6 octobre 2017

How to force cv::Mat to behave as a smart pointer

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?

Aucun commentaire:

Enregistrer un commentaire