diff options
author | Peter Keresztes Schmidt <carbenium@outlook.com> | 2020-07-15 10:22:29 +0200 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2022-01-23 18:05:59 +0100 |
commit | 770fbcca0cae18faac981a326d73996afc20b9ba (patch) | |
tree | 2e173ff2e397e56975cb37a10ec11119ec3af41f /src/common/Utilities/Optional.h | |
parent | cd86a015c46f8da581f86857e313d9c596dba7fa (diff) |
Core/Misc: Replace boost::optional with std::optional (#25047)
C++17 is already mandatory, so it's a safe thing to do
(cherry picked from commit 202fd41389973322f63186fd8e5a368fce3e1b04)
Diffstat (limited to 'src/common/Utilities/Optional.h')
-rw-r--r-- | src/common/Utilities/Optional.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/common/Utilities/Optional.h b/src/common/Utilities/Optional.h index dc5cd970970..55b9675fc59 100644 --- a/src/common/Utilities/Optional.h +++ b/src/common/Utilities/Optional.h @@ -18,8 +18,10 @@ #ifndef TrinityCore_Optional_h__ #define TrinityCore_Optional_h__ -#include "OptionalFwd.h" -#include <boost/optional.hpp> -#include <boost/utility/in_place_factory.hpp> +#include <optional> + +//! Optional helper class to wrap optional values within. +template <class T> +using Optional = std::optional<T>; #endif // TrinityCore_Optional_h__ |