namespace lst = lttng::sessiond::trace;
namespace lsu = lttng::sessiond::ust;
-namespace {
+/*
+ * fmtlib helper that must be under the same namespace as lttng_ust_ctl_abstract_types
+ * (global).
+ */
+static int format_as(lttng_ust_ctl_abstract_types type)
+{
+ return fmt::underlying(type);
+}
+
+namespace {
/*
* Type enclosing the session information that may be required during the decoding
* of the lttng_ust_ctl_field array provided by applications on registration of
lst::field_location::elements length_field_location_elements =
current_field_location_elements;
- length_field_location_elements.emplace_back(std::move(length_field_name));
+ length_field_location_elements.emplace_back(length_field_name);
lst::field_location length_field_location{ lookup_root,
std::move(length_field_location_elements) };
end,
session_attributes,
next_ust_ctl_field,
- [&choices, typed_enumeration, &selector_field, quirks](
+ [&choices, &typed_enumeration, &selector_field, quirks](
lst::field::uptr field) {
/*
* Find the enumeration mapping that matches the