Merge pull request #3848 from yxiong:fix-4125
This commit is contained in:
commit
7ab7322915
@ -1040,9 +1040,11 @@ static inline bool operator>= (const String& lhs, const char* rhs) { return lh
|
|||||||
|
|
||||||
#ifndef OPENCV_NOSTL_TRANSITIONAL
|
#ifndef OPENCV_NOSTL_TRANSITIONAL
|
||||||
namespace std
|
namespace std
|
||||||
|
{
|
||||||
|
static inline void swap(cv::String& a, cv::String& b) { a.swap(b); }
|
||||||
|
}
|
||||||
#else
|
#else
|
||||||
namespace cv
|
namespace cv
|
||||||
#endif
|
|
||||||
{
|
{
|
||||||
template<> inline
|
template<> inline
|
||||||
void swap<cv::String>(cv::String& a, cv::String& b)
|
void swap<cv::String>(cv::String& a, cv::String& b)
|
||||||
@ -1050,6 +1052,7 @@ namespace cv
|
|||||||
a.swap(b);
|
a.swap(b);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "opencv2/core/ptr.inl.hpp"
|
#include "opencv2/core/ptr.inl.hpp"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user