diff --git a/include/sharg/detail/format_tdl.hpp b/include/sharg/detail/format_tdl.hpp index d608691b..c0d4c069 100644 --- a/include/sharg/detail/format_tdl.hpp +++ b/include/sharg/detail/format_tdl.hpp @@ -232,9 +232,10 @@ class format_tdl : format_base parameters.push_back(tdl::Node{ .name = config.long_id, .description = description, - .tags = std::move(tags), .value = to_tdl(value), }); + // gcc 15 with hardened flags (fedora-flags) doesn't like having the move in the tdl::Node ctor. + parameters.back().tags = std::move(tags); info.cliMapping.emplace_back("--" + config.long_id, config.long_id); }, config);