X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Ffield.cpp;fp=src%2Fbin%2Flttng-sessiond%2Ffield.cpp;h=c00f6d1351085ec92b5bf7dd75c8ea6f5cf33fdc;hp=4a7915e203b0fcf74a743b40b3503066dd61eaf8;hb=7a73918f364c40da63f8ba78633c0d7298545a8a;hpb=5b915816f16e7cb3134dd7279abad79b31c2486c diff --git a/src/bin/lttng-sessiond/field.cpp b/src/bin/lttng-sessiond/field.cpp index 4a7915e20..c00f6d135 100644 --- a/src/bin/lttng-sessiond/field.cpp +++ b/src/bin/lttng-sessiond/field.cpp @@ -191,37 +191,42 @@ lst::enumeration_type::enumeration_type(unsigned int in_alignment, { } +/* + * Due to a bug in g++ < 7.1, these specializations must be enclosed in the namespaces + * rather than using the usual `namespace::namespace::function` notation: + * see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=56480. + */ namespace lttng { namespace sessiond { namespace trace { template <> -void lst::signed_enumeration_type::accept(type_visitor& visitor) const +void signed_enumeration_type::accept(type_visitor& visitor) const { visitor.visit(*this); } template <> -void lst::unsigned_enumeration_type::accept(type_visitor& visitor) const +void unsigned_enumeration_type::accept(type_visitor& visitor) const { visitor.visit(*this); } -} /* namespace trace */ -} /* namespace sessiond */ -} /* namespace lttng */ template <> -void lst::variant_type::accept( +void variant_type::accept( lst::type_visitor& visitor) const { visitor.visit(*this); } template <> -void lst::variant_type::accept( +void variant_type::accept( lst::type_visitor& visitor) const { visitor.visit(*this); } +} /* namespace trace */ +} /* namespace sessiond */ +} /* namespace lttng */ lst::array_type::array_type(unsigned int in_alignment, type::cuptr in_element_type) : type(in_alignment), element_type{std::move(in_element_type)} @@ -389,4 +394,4 @@ bool lst::structure_type::_is_equal(const type& base_other) const noexcept void lst::structure_type::accept(type_visitor& visitor) const { visitor.visit(*this); -} \ No newline at end of file +}