Commit 2f751650 authored by Milo Yip's avatar Milo Yip Committed by GitHub

Merge pull request #690 from fuzhufang/master

optimize FindMember  when use std::string
parents 99ba17bd b67ff2fb
...@@ -1169,8 +1169,8 @@ public: ...@@ -1169,8 +1169,8 @@ public:
\return Iterator to member, if it exists. \return Iterator to member, if it exists.
Otherwise returns \ref MemberEnd(). Otherwise returns \ref MemberEnd().
*/ */
MemberIterator FindMember(const std::basic_string<Ch>& name) { return FindMember(StringRef(name)); } MemberIterator FindMember(const std::basic_string<Ch>& name) { return FindMember(GenericValue(StringRef(name))); }
ConstMemberIterator FindMember(const std::basic_string<Ch>& name) const { return FindMember(StringRef(name)); } ConstMemberIterator FindMember(const std::basic_string<Ch>& name) const { return FindMember(GenericValue(StringRef(name))); }
#endif #endif
//! Add a member (name-value pair) to the object. //! Add a member (name-value pair) to the object.
......
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