core: change cv::Ptr DefaultDeleter

This commit is contained in:
Alexander Alekhin
2018-09-12 09:52:50 +00:00
parent 10ae0c4364
commit b80c978f5d
12 changed files with 53 additions and 75 deletions
+6 -7
View File
@@ -382,15 +382,14 @@ struct SpeciallyDeletable
bool deleted;
};
}
} // namespace
namespace cv {
template<>
void DefaultDeleter<SpeciallyDeletable>::operator()(SpeciallyDeletable * obj) const
{ obj->deleted = true; }
}
template<> struct DefaultDeleter<SpeciallyDeletable>
{
void operator()(SpeciallyDeletable * obj) const { obj->deleted = true; }
};
} // namespace
namespace opencv_test { namespace {