Skip to content

Commit 753963f

Browse files
committed
add array header
1 parent 7d371b4 commit 753963f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/timer.hpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
#include <sstream>
5454
#include <string>
5555
#include <vector>
56+
#include <array>
5657

5758
class Timer
5859
{
@@ -349,7 +350,7 @@ class Timing : public Timer
349350
std::size_t group_colors_level = std::numeric_limits<std::size_t>::max(),
350351
int precision = 4) const
351352
{
352-
static constexpr std::array<const char*, 7> RC{redColor(), greenColor(), yellowColor(),
353+
static constexpr std::array<const char*, 7> const RC{redColor(), greenColor(), yellowColor(),
353354
blueColor(), magentaColor(), cyanColor(),
354355
whiteColor()};
355356

@@ -394,7 +395,7 @@ class Timing : public Timer
394395
bool random_colors, bool bold, std::size_t group_colors_level,
395396
int precision) const
396397
{
397-
static constexpr std::array<const char*, 7> RC{redColor(), greenColor(), yellowColor(),
398+
static constexpr std::array<const char*, 7> const RC{redColor(), greenColor(), yellowColor(),
398399
blueColor(), magentaColor(), cyanColor(),
399400
whiteColor()};
400401

0 commit comments

Comments
 (0)