Add specialization for << operator for writing std::string to FileStorage

This commit is contained in:
Andrey Kamaev 2013-03-29 16:27:12 +04:00
parent cc6bdfb045
commit 855acc9748

View File

@ -125,6 +125,11 @@ template<> inline void operator >> (const FileNode& n, std::string& value)
value = val;
}
template<> inline FileStorage& operator << (FileStorage& fs, const std::string& value)
{
return fs << cv::String(value);
}
#endif // OPENCV_NOSTL
} // cv