From d7167df25ac14ef51fcf3ac7b5e04e8b7ff7deb8 Mon Sep 17 00:00:00 2001 From: Jeffrey Reynolds Date: Thu, 31 Mar 2022 12:46:33 -0700 Subject: [PATCH] Fix template syntax error at the end of the constructor causes a build failure in GCC 11 compiled with -std=c++20 --- opencensus/common/internal/stats_object.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/opencensus/common/internal/stats_object.h b/opencensus/common/internal/stats_object.h index b8c98401..f70a6f9d 100644 --- a/opencensus/common/internal/stats_object.h +++ b/opencensus/common/internal/stats_object.h @@ -78,7 +78,7 @@ class StatsObject { // Create a new StatsObject keeping num_stats distinct stats over the past // 'interval'. 'interval' will be rounded to 1 second if it is smaller. - StatsObject(uint16_t num_stats, absl::Duration interval, absl::Time now); + StatsObject(uint16_t num_stats, absl::Duration interval, absl::Time now); // The number of distinct stats we keep data for. uint16_t num_stats() const { return num_stats_; }