Fix: bt2::CommonOptionField::hasField(): has_value() not available
[babeltrace.git] / src / cpp-common / bt2 / field.hpp
index e051a806e4ab2ca1104bcbf42e2d24e93db78e2b..427cdd51017b7b79af64251b6cbbfac256e72703 100644 (file)
@@ -1399,7 +1399,7 @@ public:
 
     bool hasField() const noexcept
     {
-        return this->field().has_value();
+        return this->field();
     }
 
     OptionalBorrowedObject<CommonField<LibObjT>> field() const noexcept
This page took 0.024196 seconds and 4 git commands to generate.