Fix: cpp-common/bt2: don't pass a lib obj ptr when constructing a `CommonNullValue`
authorSimon Marchi <simon.marchi@efficios.com>
Wed, 13 Mar 2024 15:02:02 +0000 (11:02 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Tue, 26 Mar 2024 18:56:36 +0000 (14:56 -0400)
commit7eb1d0da9928b3bbda8c0dcc3ff1123f94a82d11
tree635169aaee5abb1f52db7778794428fddab818d2
parenta72c7ff699753ebaf571b69389354c40967731e7
Fix: cpp-common/bt2: don't pass a lib obj ptr when constructing a `CommonNullValue`

When trying to use `CommonValue::asNull()`, we get:

    /home/smarchi/src/babeltrace/src/cpp-common/bt2/value.hpp:1423:55: error: no matching function for call to 'bt2::CommonNullValue<const bt_value>::CommonNullValue(<brace-enclosed initializer list>)'
     1423 |     return CommonNullValue<LibObjT> {this->libObjPtr()};
          |                                                       ^

The `CommonNullValue` constructor takes no parameter, so don't try to
pass one.

Change-Id: I653ab947fc36134c8767f39185a9a2cd85511b90
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12050
CI-Build: Simon Marchi <simon.marchi@efficios.com>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
src/cpp-common/bt2/value.hpp
This page took 0.024691 seconds and 4 git commands to generate.