Skip to content

Commit

Permalink
add array header
Browse files Browse the repository at this point in the history
  • Loading branch information
Kin-Zhang committed Oct 21, 2023
1 parent 7d371b4 commit 753963f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/timer.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
#include <sstream>
#include <string>
#include <vector>
#include <array>

class Timer
{
Expand Down Expand Up @@ -349,7 +350,7 @@ class Timing : public Timer
std::size_t group_colors_level = std::numeric_limits<std::size_t>::max(),
int precision = 4) const
{
static constexpr std::array<const char*, 7> RC{redColor(), greenColor(), yellowColor(),
static constexpr std::array<const char*, 7> const RC{redColor(), greenColor(), yellowColor(),
blueColor(), magentaColor(), cyanColor(),
whiteColor()};

Expand Down Expand Up @@ -394,7 +395,7 @@ class Timing : public Timer
bool random_colors, bool bold, std::size_t group_colors_level,
int precision) const
{
static constexpr std::array<const char*, 7> RC{redColor(), greenColor(), yellowColor(),
static constexpr std::array<const char*, 7> const RC{redColor(), greenColor(), yellowColor(),
blueColor(), magentaColor(), cyanColor(),
whiteColor()};

Expand Down

0 comments on commit 753963f

Please sign in to comment.