From 5a0699192a626d2876fbe254e0f50979c0b6ede5 Mon Sep 17 00:00:00 2001 From: Filip Sajdak Date: Wed, 8 Mar 2023 02:19:03 +0100 Subject: [PATCH] Fix duplicate symbol of cpp2::args() function When linking multiple cpp2 files cpp2::args symbol appears multiple times. --- include/cpp2util.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/cpp2util.h b/include/cpp2util.h index 7714a69ce6..a8ee8d0b3d 100644 --- a/include/cpp2util.h +++ b/include/cpp2util.h @@ -1419,7 +1419,7 @@ inline auto to_string(std::tuple const& t) -> std::string // //----------------------------------------------------------------------- // -auto args(int argc, char **argv) -> std::vector { +inline auto args(int argc, char **argv) -> std::vector { auto ret = std::vector{(size_t)argc}; for (auto i = 0; i < argc; ++i) { ret[i] = std::string_view{argv[i]};