Fix std::optional related compilation errors on some platforms

This commit is contained in:
Jonathan G Rennison
2023-06-05 20:04:13 +01:00
parent 3d382fe531
commit ffb4548f1b
4 changed files with 6 additions and 4 deletions

View File

@@ -14,6 +14,7 @@
#include "strings_func.h"
#include "textfile_type.h"
#include "window_gui.h"
#include "3rdparty/optional/ottd_optional.h"
const char *GetTextfile(TextfileType type, Subdirectory dir, const char *filename);
@@ -36,7 +37,7 @@ struct TextfileWindow : public Window, MissingGlyphSearcher {
void Reset() override;
FontSize DefaultSize() override;
std::optional<std::string_view> NextString() override;
opt::optional<std::string_view> NextString() override;
bool Monospace() override;
void SetFontNames(FontCacheSettings *settings, const char *font_name, const void *os_data) override;