Revert "Cleanup: use std::optional instead of custom implementation."

This reverts commit 484ea62a62.
This commit is contained in:
Jonathan G Rennison
2021-02-16 13:49:13 +00:00
parent cb5cd11b9a
commit aaeba6887c
4 changed files with 1124 additions and 2 deletions

View File

@@ -12,7 +12,7 @@
#include "fileio_type.h"
#include <string>
#include <optional>
#include "3rdparty/optional/ottd_optional.h"
#include <string>
@@ -27,7 +27,7 @@ enum IniGroupType {
struct IniItem {
IniItem *next; ///< The next item in this group
std::string name; ///< The name of this item
std::optional<std::string> value; ///< The value of this item
opt::optional<std::string> value; ///< The value of this item
std::string comment; ///< The comment associated with this item
IniItem(struct IniGroup *parent, const std::string &name);