GCC doesn't implement <format> yet, use fmt

This commit is contained in:
Dan Paulat 2023-04-17 18:24:50 -05:00
parent 593010acc2
commit 31db9a4315
12 changed files with 27 additions and 28 deletions

View file

@ -2,10 +2,10 @@
#include <scwx/qt/settings/settings_variable.hpp>
#include <scwx/qt/util/color.hpp>
#include <format>
#include <regex>
#include <boost/gil.hpp>
#include <fmt/format.h>
namespace scwx
{
@ -74,8 +74,8 @@ public:
for (auto& alert : kAlertColors_)
{
std::string phenomenonCode = awips::GetPhenomenonCode(alert.first);
std::string activeName = std::format("{}-active", phenomenonCode);
std::string inactiveName = std::format("{}-inactive", phenomenonCode);
std::string activeName = fmt::format("{}-active", phenomenonCode);
std::string inactiveName = fmt::format("{}-inactive", phenomenonCode);
auto activeResult = activeAlertColor_.emplace(
alert.first, SettingsVariable<std::string> {activeName});