diff options
author | robot-piglet <[email protected]> | 2025-03-12 20:46:53 +0300 |
---|---|---|
committer | robot-piglet <[email protected]> | 2025-03-12 20:56:57 +0300 |
commit | 0225cf80af14a18b60c5f52e353d238c671a5fab (patch) | |
tree | 1f06b3bc57a01aeecdab6c21317bbfa0af79c97f /contrib/restricted/boost/property_tree/patches/revert-pr115-delete-rvalue.patch | |
parent | e8b9bf4693cd4cb2d0124ad3e1545568a2023023 (diff) |
Intermediate changes
commit_hash:9238849c63346221a3ce13aa39095edcf1e96aeb
Diffstat (limited to 'contrib/restricted/boost/property_tree/patches/revert-pr115-delete-rvalue.patch')
-rw-r--r-- | contrib/restricted/boost/property_tree/patches/revert-pr115-delete-rvalue.patch | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/contrib/restricted/boost/property_tree/patches/revert-pr115-delete-rvalue.patch b/contrib/restricted/boost/property_tree/patches/revert-pr115-delete-rvalue.patch new file mode 100644 index 00000000000..2708e9ccedc --- /dev/null +++ b/contrib/restricted/boost/property_tree/patches/revert-pr115-delete-rvalue.patch @@ -0,0 +1,26 @@ +From 5438bf79d27cd9e656a16ddcb9688f68537cea31 Mon Sep 17 00:00:00 2001 +From: Mohammad Nejati <[email protected]> +Date: Sun, 19 Nov 2023 08:01:09 +0000 +Subject: [PATCH] Prevent calls to get_child with temporary default values + +Resolves #42 +--- + include/boost/property_tree/ptree.hpp | 4 ++++ + test/test_property_tree.cpp | 6 ++++++ + test/test_property_tree.hpp | 29 +++++++++++++++++++-------- + 3 files changed, 31 insertions(+), 8 deletions(-) + +diff --git a/include/boost/property_tree/ptree.hpp b/include/boost/property_tree/ptree.hpp +index ac4593ba5..2743123c9 100644 +--- a/include/boost/property_tree/ptree.hpp ++++ b/include/boost/property_tree/ptree.hpp +@@ -270,9 +270,5 @@ namespace boost { namespace property_tree + const self_type &get_child(const path_type &path, + const self_type &default_value) const; + +- /** Prevents calls to get_child with temporary default values */ +- void get_child(const path_type &path, +- const self_type &&default_value) const = delete; +- + /** Get the child at the given path, or return boost::null. */ + optional<self_type &> get_child_optional(const path_type &path); |