Skip to content

Commit

Permalink
Merge branch 'string_path' of https://github.com/LRFLEW/property_tree
Browse files Browse the repository at this point in the history
…into add-operator-/-for-string_path-and-string
  • Loading branch information
ashtum committed Dec 5, 2023
2 parents ddaf922 + c4c2d59 commit bf1cbc9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions include/boost/property_tree/string_path.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -272,6 +272,25 @@ namespace boost { namespace property_tree
t /= p2;
return t;
}

template <typename String, typename Translator> inline
string_path<String, Translator> operator /(
string_path<String, Translator> p1,
const String &p2)
{
p1 /= p2;
return p1;
}

template <typename String, typename Translator> inline
string_path<String, Translator> operator /(
const String &p1,
const string_path<String, Translator> &p2)
{
string_path<String, Translator> t(p1);
t /= p2;
return t;
}

}}

Expand Down

0 comments on commit bf1cbc9

Please sign in to comment.