[+] TartanLlama/optional based optionals because i cant be arsed to finish the minimalistic std replacements
This commit is contained in:
parent
6d7d14a3e2
commit
6239971ea7
1
Include/auROXTL/ThirdParty/LICENSING.txt
vendored
Normal file
1
Include/auROXTL/ThirdParty/LICENSING.txt
vendored
Normal file
@ -0,0 +1 @@
|
|||||||
|
All software here must be CC0, Unlicense, or similar public domain license.
|
3166
Include/auROXTL/ThirdParty/tartanllamaOptional.hpp
vendored
Normal file
3166
Include/auROXTL/ThirdParty/tartanllamaOptional.hpp
vendored
Normal file
File diff suppressed because it is too large
Load Diff
@ -7,8 +7,21 @@
|
|||||||
***/
|
***/
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#if !defined(AURORA_RUNTIME_AU_OPTIONAL)
|
|
||||||
#define AURORA_RUNTIME_AU_OPTIONAL std::optional
|
#if defined(DO_NOT_USEtartanllama)
|
||||||
|
|
||||||
|
#if !defined(AURORA_RUNTIME_AU_OPTIONAL)
|
||||||
|
#define AURORA_RUNTIME_AU_OPTIONAL std::optional
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
#include "ThirdParty/tartanllamaOptional.hpp"
|
||||||
|
|
||||||
|
#if !defined(AURORA_RUNTIME_AU_OPTIONAL)
|
||||||
|
#define AURORA_RUNTIME_AU_OPTIONAL tl::optional
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(_AURORA_AVOID_DUMB_STL_TYPES)
|
#if defined(_AURORA_AVOID_DUMB_STL_TYPES)
|
||||||
|
@ -10,6 +10,11 @@
|
|||||||
#include "auCopyMoveUtils.hpp"
|
#include "auCopyMoveUtils.hpp"
|
||||||
#include "auHashUtils.hpp"
|
#include "auHashUtils.hpp"
|
||||||
|
|
||||||
|
#if defined(DO_NOT_USEtartanllama)
|
||||||
|
|
||||||
|
// @DEPRECATED
|
||||||
|
// WONT FINISH, probably
|
||||||
|
// Use forked tartanllama optional instead (aurora should compile with either)
|
||||||
template <class T>
|
template <class T>
|
||||||
struct AuOptionalEx
|
struct AuOptionalEx
|
||||||
{
|
{
|
||||||
@ -88,4 +93,15 @@ struct AuOptionalEx
|
|||||||
AuSwap(this->type, ex.type);
|
AuSwap(this->type, ex.type);
|
||||||
AuSwap(this->hasValue, ex.hasValue);
|
AuSwap(this->hasValue, ex.hasValue);
|
||||||
}
|
}
|
||||||
};
|
|
||||||
|
// TODO finish me
|
||||||
|
};
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
|
#include "ThirdParty/tartanllamaOptional.hpp"
|
||||||
|
|
||||||
|
template <typename T>
|
||||||
|
using AuOptionalEx = tl::optional<T>;
|
||||||
|
|
||||||
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user