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

@@ -15,6 +15,7 @@
#include "gfx_type.h"
#include "core/bitmath_func.hpp"
#include "vehicle_type.h"
#include "3rdparty/optional/ottd_optional.h"
/**
* Extract the StringTab from a StringID.
@@ -266,7 +267,7 @@ public:
* Get the next string to search through.
* @return The next string or nullopt if there is none.
*/
virtual std::optional<std::string_view> NextString() = 0;
virtual opt::optional<std::string_view> NextString() = 0;
/**
* Get the default (font) size of the string.