Build fix: old gcc does not recognize hidden/shadowed enumeration as valid
[lttng-tools.git] / src / bin / lttng-sessiond / stream-class.hpp
index 636d0b136690ed82dd9ef2edf987be90fb66bbd7..08555f3071e55362f1ce4f20fae3d4ca7ab59a12 100644 (file)
@@ -32,7 +32,12 @@ public:
        virtual const lttng::sessiond::trace::type& get_context() const;
 
        const unsigned int id;
-       const header_type header_type;
+       /*
+        * header_type is suffixed with '_' to work-around a bug in older
+        * GCCs (before 6) that do not recognize hidden/shadowed enumeration as valid
+        * nested-name-specifiers.
+        */
+       const header_type header_type_;
 
 protected:
        stream_class(unsigned int id, enum header_type header_type);
This page took 0.023267 seconds and 4 git commands to generate.