From 261316cb457150d1881c98cac7848af30817c37d Mon Sep 17 00:00:00 2001 From: Scott Giese Date: Tue, 15 Dec 2020 01:41:32 -0600 Subject: [PATCH] Support Boost v1.75 Resolved a breaking change. --- simgear/props/props.cxx | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) diff --git a/simgear/props/props.cxx b/simgear/props/props.cxx index 2fae7b12..716a9f2f 100644 --- a/simgear/props/props.cxx +++ b/simgear/props/props.cxx @@ -566,23 +566,15 @@ find_node (SGPropertyNode * current, } } #else -template -SGPropertyNode* -find_node (SGPropertyNode * current, - const Range& path, - bool create, - int last_index = -1) -{ +template +SGPropertyNode *find_node(SGPropertyNode *current, const Range &path, + bool create, int last_index = -1) { using namespace boost; - typedef split_iterator::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