Build fix: brace-enclosed initlializer lists error with g++ 4.8
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 7 Jun 2023 14:42:57 +0000 (10:42 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Wed, 7 Jun 2023 19:13:09 +0000 (15:13 -0400)
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(<brace-enclosed initializer list>)' is ambiguous
    { std::move(original._container) })
                                      ^

Change-Id: I19da292ed9a49bada7dbda5753bf1bd1442e612f
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
src/bin/lttng/utils.hpp

index 56706af13b4cfadafa273df885bc3ab801d62ecb..000509da5f4ad2dacfec76c8525dbd5c02650fd5 100644 (file)
@@ -109,7 +109,7 @@ public:
                lttng::utils::random_access_container_wrapper<details::session_storage,
                                                              lttng_session&,
                                                              details::session_list_operations>(
-                       { std::move(original._container) })
+                       std::move(original._container))
        {
        }
 
This page took 0.034287 seconds and 4 git commands to generate.