Fix: bt2::CommonOptionField::hasField(): has_value() not available
authorPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 12 Mar 2024 17:06:53 +0000 (13:06 -0400)
committerPhilippe Proulx <eeppeliteloop@gmail.com>
Tue, 12 Mar 2024 17:06:53 +0000 (13:06 -0400)
I forgot this in ca61ecbc0 ("cpp-common/bt2: use
`bt2::OptionalBorrowedObject` where possible").

Signed-off-by: Philippe Proulx <eeppeliteloop@gmail.com>
Change-Id: Icb522b0e5a8a73c1899035f820e5d332d6b123d8

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.02546 seconds and 4 git commands to generate.