From 7be1800ea427becf3e8f33c204de152dea5d03c4 Mon Sep 17 00:00:00 2001 From: Sergey Shevchenko Date: Thu, 26 Oct 2023 15:18:13 -0700 Subject: [PATCH] #Centipede Tiny C++20 optimization PiperOrigin-RevId: 577001486 --- centipede/runner_result.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/centipede/runner_result.h b/centipede/runner_result.h index 27696d69..d7544a1b 100644 --- a/centipede/runner_result.h +++ b/centipede/runner_result.h @@ -54,12 +54,7 @@ class ExecutionResult { uint64_t peak_rss_mb = 0; // Peak RSS in Mb after executing the input. // For tests. - bool operator==(const Stats& other) const { // = default in C++20. - return prep_time_usec == other.prep_time_usec && - exec_time_usec == other.exec_time_usec && - peak_rss_mb == other.peak_rss_mb && - post_time_usec == other.post_time_usec; - } + bool operator==(const Stats&) const = default; }; // Accessors.