Use C++23

This commit is contained in:
Vyn 2024-11-03 18:27:36 +01:00
parent a15c23bb21
commit 668d1df06f
6 changed files with 13 additions and 34 deletions

View file

@ -27,6 +27,7 @@
#include <memory>
#include <optional>
#include <ostream>
#include <print>
#include <ranges>
#include <string>
#include <string_view>
@ -50,7 +51,7 @@ AppWindowBackend::AppWindowBackend(mirai::Mirai *miraiInstance)
const auto palettePath = std::string(getenv("HOME")) + "/.config/evalyte/theme.json";
const auto palette = selenite::parseJson(palettePath);
if (palette.has_value()) {
std::cerr << "Warning, no " << palettePath << " found" << std::endl;
std::println(std::cerr, "Warning, no {} found", palettePath);
setSelenitePalette(mainWindow_->global<ui::Palette>(), palette.value());
setSelenitePalette(settingsWindow_->global<ui::Palette>(), palette.value());
setSelenitePalette(addSourceWindow_->global<ui::Palette>(), palette.value());