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

pull/720/head
Andrey Kamaev 12 years ago
parent cc6bdfb045
commit 855acc9748
  1. 5
      modules/core/include/opencv2/core/cvstd.inl.hpp

@ -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…
Cancel
Save