From cc1b8b2d56148e3d3a88e9e0c1281cc84241cca0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Tue, 2 Apr 2019 13:55:58 +0300 Subject: [PATCH] Use std::begin and std::end This makes it clear that they are standard functions. --- maxutils/maxbase/include/maxbase/string.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/maxutils/maxbase/include/maxbase/string.hh b/maxutils/maxbase/include/maxbase/string.hh index ced610696..9f202496d 100644 --- a/maxutils/maxbase/include/maxbase/string.hh +++ b/maxutils/maxbase/include/maxbase/string.hh @@ -182,13 +182,13 @@ template std::string join(const T& container, const std::string& separator = ",") { std::stringstream ss; - auto it = begin(container); + auto it = std::begin(container); - if (it != end(container)) + if (it != std::end(container)) { ss << *it++; - while (it != end(container)) + while (it != std::end(container)) { ss << separator << *it++; }