X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;ds=sidebyside;f=src%2Fbin%2Flttng-sessiond%2Ffield.cpp;h=94d002167556a87fe3901359a25d9f28d49c4872;hb=04938faeeb4b28c5791029a2542848534ac83b17;hp=6a5fa162b702837649246920bdc5e1ac2b75355b;hpb=cd9adb8b829564212158943a0d279bb35322ab30;p=lttng-tools.git diff --git a/src/bin/lttng-sessiond/field.cpp b/src/bin/lttng-sessiond/field.cpp index 6a5fa162b..94d002167 100644 --- a/src/bin/lttng-sessiond/field.cpp +++ b/src/bin/lttng-sessiond/field.cpp @@ -15,8 +15,8 @@ namespace lst = lttng::sessiond::trace; namespace { -template -bool fields_are_equal(const FieldTypeSet& a, const FieldTypeSet& b) +template +bool fields_are_equal(const FieldTypeContainerType& a, const FieldTypeContainerType& b) { if (a.size() != b.size()) { return false; @@ -25,8 +25,8 @@ bool fields_are_equal(const FieldTypeSet& a, const FieldTypeSet& b) return std::equal(a.cbegin(), a.cend(), b.cbegin(), - [](typename FieldTypeSet::const_reference field_a, - typename FieldTypeSet::const_reference field_b) { + [](typename FieldTypeContainerType::const_reference field_a, + typename FieldTypeContainerType::const_reference field_b) { return *field_a == *field_b; }); } @@ -65,8 +65,8 @@ lst::field::field(std::string in_name, lst::type::cuptr in_type) : name{ std::move(in_name) }, _type{ std::move(in_type) } { if (!_type) { - LTTNG_THROW_ERROR( - fmt::format("Invalid type used to create field: field name = `{}`", name)); + LTTNG_THROW_ERROR(lttng::format( + "Invalid type used to create field: field name = `{}`", name)); } } @@ -90,7 +90,7 @@ const lst::type& lst::field::get_type() const if (_type) { return *_type; } else { - LTTNG_THROW_ERROR(fmt::format( + LTTNG_THROW_ERROR(lttng::format( "Invalid attempt to access field type after transfer: field name = `{}`", name)); } @@ -162,7 +162,7 @@ lst::floating_point_type::floating_point_type(unsigned int in_alignment, return; } - LTTNG_THROW_INVALID_ARGUMENT_ERROR(fmt::format( + LTTNG_THROW_INVALID_ARGUMENT_ERROR(lttng::format( "Invalid exponent/mantissa values provided while creating {}", typeid(*this))); }