From: Michael Jeanson Date: Wed, 7 Jun 2023 14:42:57 +0000 (-0400) Subject: Build fix: brace-enclosed initlializer lists error with g++ 4.8 X-Git-Url: https://git.lttng.org/?a=commitdiff_plain;h=56e5528de1689e0cc07c115f41f0cc3d9c7ce8d3;hp=4d4aae780527d696919adb5fb052ab68c9813360;p=lttng-tools.git Build fix: brace-enclosed initlializer lists error with g++ 4.8 Looks like g++ 4.8 is confused by a single argument brace enclosed initializer list: utils.hpp: In constructor 'lttng::cli::session_list::session_list(lttng::cli::session_list&&)': utils.hpp:112:38: error: call of overloaded 'random_access_container_wrapper()' is ambiguous { std::move(original._container) }) ^ Change-Id: I19da292ed9a49bada7dbda5753bf1bd1442e612f Signed-off-by: Michael Jeanson Signed-off-by: Jérémie Galarneau --- diff --git a/src/bin/lttng/utils.hpp b/src/bin/lttng/utils.hpp index 56706af13..000509da5 100644 --- a/src/bin/lttng/utils.hpp +++ b/src/bin/lttng/utils.hpp @@ -109,7 +109,7 @@ public: lttng::utils::random_access_container_wrapper( - { std::move(original._container) }) + std::move(original._container)) { }