mirror of
https://github.com/opencv/opencv.git
synced 2024-11-29 13:47:32 +08:00
Add specialization for << operator for writing std::string to FileStorage
This commit is contained in:
parent
cc6bdfb045
commit
855acc9748
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user