1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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
|