Skip to content

Commit d5bc32c

Browse files
committed
need specific on std::array usage
1 parent b05d418 commit d5bc32c

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/timer.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -349,13 +349,13 @@ class Timing : public Timer
349349
std::size_t group_colors_level = std::numeric_limits<std::size_t>::max(),
350350
int precision = 4) const
351351
{
352-
static constexpr std::array const RC{redColor(), greenColor(), yellowColor(),
352+
static constexpr std::array<const char*, 7> const RC{redColor(), greenColor(), yellowColor(),
353353
blueColor(), magentaColor(), cyanColor(),
354354
whiteColor()};
355355

356356
std::array<std::string, 8> label{"Component", "Total", "Last", "Mean",
357357
"StDev", "Min", "Max", "Steps"};
358-
std::array width{
358+
std::array<int, 8> width{
359359
std::max(static_cast<int>(label[0].length()), longestTag()),
360360
std::max(static_cast<int>(label[1].length()), precision + 1 + longestTotal()),
361361
std::max(static_cast<int>(label[2].length()), precision + 1 + longestLast()),
@@ -394,7 +394,7 @@ class Timing : public Timer
394394
bool random_colors, bool bold, std::size_t group_colors_level,
395395
int precision) const
396396
{
397-
static constexpr std::array const RC{redColor(), greenColor(), yellowColor(),
397+
static constexpr std::array<const char*, 7> const RC{redColor(), greenColor(), yellowColor(),
398398
blueColor(), magentaColor(), cyanColor(),
399399
whiteColor()};
400400

0 commit comments

Comments
 (0)