Fixed reading of the user class from *.xml (ticket #840).

This commit is contained in:
Ilya Lysenkov
2011-06-01 10:05:11 +00:00
parent 68a94665e5
commit b6c195d44c
2 changed files with 5 additions and 2 deletions

View File

@@ -2828,7 +2828,10 @@ FileNodeIterator& operator >> (FileNodeIterator& it, vector<_Tp>& vec)
}
template<typename _Tp> static inline void operator >> (const FileNode& n, _Tp& value)
{ FileNodeIterator it = n.begin(); it >> value; }
{ read( n, value, _Tp()); }
template<typename _Tp> static inline void operator >> (const FileNode& n, vector<_Tp>& vec)
{ FileNodeIterator it = n.begin(); it >> vec; }
static inline bool operator == (const FileNodeIterator& it1, const FileNodeIterator& it2)
{