Skip to content

Commit

Permalink
fix ambiguous call error with some compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
octobanana committed Jan 11, 2019
1 parent a3eaf80 commit 5711f0f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/peaclock/peaclock.cc
Original file line number Diff line number Diff line change
Expand Up @@ -202,12 +202,12 @@ void Peaclock::event_loop()
else if (e == 1)
{
// digit is set to on
buf << aec::wrap(_config.symbol, {_config.style.active, _config.style.bold});
buf << aec::wrap(_config.symbol, std::vector {_config.style.active, _config.style.bold});
}
else
{
// digit is set to off
buf << aec::wrap(_config.symbol, {_config.style.inactive, _config.style.bold});
buf << aec::wrap(_config.symbol, std::vector {_config.style.inactive, _config.style.bold});
}

if (col < 6)
Expand Down Expand Up @@ -242,13 +242,13 @@ void Peaclock::event_loop()

for (std::size_t i {0}; i < _digital_clock.size(); ++i)
{
buf << aec::wrap(_digital_clock.at(i), {_config.style.active, _config.style.bold});
buf << aec::wrap(_digital_clock.at(i), std::vector {_config.style.active, _config.style.bold});

if (_config.compact)
{
if (i == 1 || i == 3)
{
buf << aec::wrap(":", {_config.style.inactive, _config.style.bold});
buf << aec::wrap(":", std::vector {_config.style.inactive, _config.style.bold});
}
}
else
Expand Down

0 comments on commit 5711f0f

Please sign in to comment.