Use array instead of vector

This commit is contained in:
Kjetil Olsen Lye committed 2024-10-09 13:56:06 +02:00
1 parent ea76a1987c
commit d91208099f
1 file changed
+2 -1
+2 -1
View File
@@ -28,6 +28,7 @@
#include <fmt/format.h>
#include <array>
#include <cstdlib>
#include <tuple>
@@ -98,7 +99,7 @@ main(int argc, char** argv)
"following number of components:\n\t{}. Note that the supported components can be changed "
"when configuring CMake through the OPM_COMPILE_COMPONENTS options. Exiting.",
numComps,
fmt::join(std::vector {OPM_COMPILE_COMPONENTS_TEMPLATE_LIST}, ", "));
fmt::join(std::array {OPM_COMPILE_COMPONENTS_TEMPLATE_LIST}, ", "));
}
return executionStatus;
}