Skip to content

Commit 994e7bf

Browse files
Updated Pybind11 to reflect the change in return type of benchmark_base::get_printer
1 parent 7aec486 commit 994e7bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/src/py_nvbench.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ Returns True if configuration has a device
710710

711711
// method State.has_printers
712712
auto method_has_printers_impl = [](const nvbench::state &state) -> bool {
713-
return state.get_benchmark().get_printer().has_value();
713+
return state.get_benchmark().get_printer() != nullptr;
714714
};
715715
static constexpr const char *method_has_printers_doc = R"XXXX(
716716
Returns True if configuration has a printer"

0 commit comments

Comments
 (0)