Commit 855acc97 authored by Andrey Kamaev's avatar Andrey Kamaev

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

parent cc6bdfb0
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment