summaryrefslogtreecommitdiffstats
path: root/libraries/SimGear/simgear-boost-1.75.patch
diff options
context:
space:
mode:
author Lenard Spencer <lenardrspencer@gmail.com>2021-01-02 08:49:11 +0700
committer Willy Sudiarto Raharjo <willysr@slackbuilds.org>2021-01-02 10:48:18 +0700
commit90ff246dbbe8691d9da2bb5d3ae4b2e938e43433 (patch)
treebb36673e61e9c6cc7897da1c4836c5317076df5f /libraries/SimGear/simgear-boost-1.75.patch
parenta03a0aa2474320ebec4516150a5eb67d6bbe8aaa (diff)
downloadslackbuilds-90ff246dbbe8691d9da2bb5d3ae4b2e938e43433.tar.gz
slackbuilds-90ff246dbbe8691d9da2bb5d3ae4b2e938e43433.tar.xz
libraries/SimGear: Updated for version 2020.3.5.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to '')
-rw-r--r--libraries/SimGear/simgear-boost-1.75.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/libraries/SimGear/simgear-boost-1.75.patch b/libraries/SimGear/simgear-boost-1.75.patch
new file mode 100644
index 0000000000..8852af9894
--- /dev/null
+++ b/libraries/SimGear/simgear-boost-1.75.patch
@@ -0,0 +1,33 @@
+diff -Naur simgear-2020.3.5.orig/simgear/props/props.cxx simgear-2020.3.5/simgear/props/props.cxx
+--- simgear-2020.3.5.orig/simgear/props/props.cxx 2020-12-18 06:42:37.000000000 -0500
++++ simgear-2020.3.5/simgear/props/props.cxx 2020-12-26 17:01:19.770916937 -0500
+@@ -566,23 +573,15 @@
+ }
+ }
+ #else
+-template<typename Range>
+-SGPropertyNode*
+-find_node (SGPropertyNode * current,
+- const Range& path,
+- bool create,
+- int last_index = -1)
+-{
++template <typename Range>
++SGPropertyNode *find_node(SGPropertyNode *current, const Range &path,
++ bool create, int last_index = -1) {
+ using namespace boost;
+- typedef split_iterator<typename range_result_iterator<Range>::type>
+- PathSplitIterator;
+-
+- PathSplitIterator itr
+- = make_split_iterator(path, first_finder("/", is_equal()));
++ auto itr = make_split_iterator(path, first_finder("/", is_equal()));
+ if (*path.begin() == '/')
+ return find_node_aux(current->getRootNode(), itr, create, last_index);
+- else
+- return find_node_aux(current, itr, create, last_index);
++ else
++ return find_node_aux(current, itr, create, last_index);
+ }
+ #endif
+