mirror of
https://github.com/NVIDIA/nvbench.git
synced 2026-04-20 06:48:53 +00:00
Add missing [[nodiscard]].
This commit is contained in:
@@ -79,7 +79,7 @@ struct summary : public nvbench::named_values
|
||||
summary &operator=(summary &&) = default;
|
||||
|
||||
void set_name(std::string name) { m_name = std::move(name); }
|
||||
const std::string &get_name() const { return m_name; }
|
||||
[[nodiscard]] const std::string &get_name() const { return m_name; }
|
||||
|
||||
private:
|
||||
std::string m_name;
|
||||
|
||||
Reference in New Issue
Block a user