diff --git a/nvbench/state.cuh b/nvbench/state.cuh index d815df7..f71cbeb 100644 --- a/nvbench/state.cuh +++ b/nvbench/state.cuh @@ -306,7 +306,7 @@ private: std::optional device, std::size_t type_config_index); - bool skip_hot_measurement() { return get_run_once() || get_skip_batched(); } + [[nodiscard]] bool skip_hot_measurement() const { return get_run_once() || get_skip_batched(); } std::reference_wrapper m_benchmark; nvbench::named_values m_axis_values;