Skip to content
This repository has been archived by the owner on Jul 31, 2023. It is now read-only.

Commit

Permalink
Fix template syntax error (#466)
Browse files Browse the repository at this point in the history
<N> at the end of the constructor causes a build failure in GCC 11 compiled with -std=c++20
  • Loading branch information
taekahn authored Apr 6, 2022
1 parent 3ee2520 commit 3e6aa4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opencensus/common/internal/stats_object.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<N>(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_; }
Expand Down

0 comments on commit 3e6aa4c

Please sign in to comment.