summaryrefslogtreecommitdiff
path: root/src/lib/util.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2021-01-04 21:32:13 +0100
committerCarl Hetherington <cth@carlh.net>2021-01-07 23:27:56 +0100
commita5d004b0773f633401528392fc28e66d70e13ac8 (patch)
tree9f83ff2ab353f5a63918210d4930d0ead228375e /src/lib/util.h
parentdd9be86db6cde0afa5da0d1d1ac43b42e05dca26 (diff)
BOOST_FOREACH.
Diffstat (limited to 'src/lib/util.h')
-rw-r--r--src/lib/util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/util.h b/src/lib/util.h
index 564e376ad..ceb30701c 100644
--- a/src/lib/util.h
+++ b/src/lib/util.h
@@ -128,7 +128,7 @@ std::list<T>
vector_to_list (std::vector<T> v)
{
std::list<T> l;
- BOOST_FOREACH (T& i, v) {
+ for (auto& i: v) {
l.push_back (i);
}
return l;
@@ -139,7 +139,7 @@ std::vector<T>
list_to_vector (std::list<T> v)
{
std::vector<T> l;
- BOOST_FOREACH (T& i, v) {
+ for (auto& i: v) {
l.push_back (i);
}
return l;