mirror of
https://github.com/NVIDIA/nvbench.git
synced 2026-03-14 20:27:24 +00:00
Making stopping criterion constructor explicit
This commit is contained in:
@@ -62,7 +62,7 @@ protected:
|
||||
criterion_params m_params;
|
||||
|
||||
public:
|
||||
stopping_criterion(std::string name) : m_name(std::move(name)) { }
|
||||
explicit stopping_criterion(std::string name) : m_name(std::move(name)) { }
|
||||
|
||||
[[nodiscard]] const std::string &get_name() const { return m_name; }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user