[*] Include order pissing me off

This commit is contained in:
Reece Wilson 2024-06-19 14:59:59 +01:00
parent bccca3d6d0
commit 6e92197438
4 changed files with 28 additions and 12 deletions

View File

@ -2014,7 +2014,7 @@ namespace tl {
return 0; return 0;
} }
return AuHashCode(this->m_value); return __audetail::HashCode(this->m_value);
} }
}; // namespace tl }; // namespace tl
@ -3135,7 +3135,7 @@ namespace tl {
AuUInt HashCode() const AuUInt HashCode() const
{ {
return AuHashCode(m_value); return __audetail::HashCode(m_value);
} }
private: private:
@ -3155,7 +3155,7 @@ namespace std
if (!o.has_value()) if (!o.has_value())
return 0; return 0;
return AuHashCode<tl::detail::remove_const_t<T>>(*o); return __audetail::HashCode<tl::detail::remove_const_t<T>>(*o);
} }
}; };
} }

View File

@ -132,10 +132,6 @@ static void auline AuSafeDelete(T *in)
#define AURORA_RUNTIME_AU_DEFAULT_DELETER std::default_delete #define AURORA_RUNTIME_AU_DEFAULT_DELETER std::default_delete
#endif #endif
// TODO: Move me
#include "auOptional.hpp"
#include "auCastUtils.hpp"
namespace Aurora::Memory namespace Aurora::Memory
{ {
template <class T> template <class T>

View File

@ -150,22 +150,25 @@ namespace __audetail
template <class T> template <class T>
constexpr inline bool AuHasBegin_v = AuHasBegin<T>::type::value; constexpr inline bool AuHasBegin_v = AuHasBegin<T>::type::value;
template <class T>
AuUInt HashCode(const T &hashCode);
} }
#include <auROXTL/auResult.hpp> #include <auROXTL/auResult.hpp>
#include <auROXTL/auMemoryModel.hpp> #include <auROXTL/auMemoryModel.hpp>
#include <auROXTL/auOptionalEx.hpp>
#include <auROXTL/auString.hpp> #include <auROXTL/auString.hpp>
#include <auROXTL/auUTF8StringView.hpp> #include <auROXTL/auUTF8StringView.hpp>
#include <auROXTL/auFunctional.hpp> #include <auROXTL/auFunctional.hpp>
#include <auROXTL/auArray.hpp> #include <auROXTL/auTuple.hpp>
#include <auROXTL/auList.hpp> #include <auROXTL/auList.hpp>
#include <auROXTL/auHashMap.hpp> #include <auROXTL/auHashMap.hpp>
#include <auROXTL/auBST.hpp> #include <auROXTL/auBST.hpp>
#include <auROXTL/auTuple.hpp>
#include <auROXTL/auOptional.hpp>
#include <auROXTL/auVector.hpp> #include <auROXTL/auVector.hpp>
#include <auROXTL/auArray.hpp>
#include <auROXTL/auArrayList.hpp> #include <auROXTL/auArrayList.hpp>
#include <auROXTL/auOptional.hpp>
#include <auROXTL/auOptionalEx.hpp>
namespace Aurora::Memory namespace Aurora::Memory
{ {

View File

@ -41,15 +41,32 @@
#include <auROXTL/auBitsUtils.hpp> #include <auROXTL/auBitsUtils.hpp>
#include <auROXTL/auMagicUtils.hpp> #include <auROXTL/auMagicUtils.hpp>
#include <auROXTL/auWin32Utils.hpp> #include <auROXTL/auWin32Utils.hpp>
// annoying
#include <auROXTL/auHashUtils.hpp>
namespace __audetail
{
template <class T>
AuUInt HashCode(const T &hashCode)
{
return AuHashCode(hashCode);
}
}
// annoying
#include <auROXTL/auCastUtils.hpp> #include <auROXTL/auCastUtils.hpp>
// cont
#include <auROXTL/auTypeUtils.hpp> #include <auROXTL/auTypeUtils.hpp>
#include <auROXTL/auNumericLimits.hpp> #include <auROXTL/auNumericLimits.hpp>
#include <auROXTL/auUnitUtils.hpp> #include <auROXTL/auUnitUtils.hpp>
#include <auROXTL/auFNV1Utils.hpp> #include <auROXTL/auFNV1Utils.hpp>
#include <auROXTL/auHashUtils.hpp>
#include <auROXTL/auTryConstructUtils.hpp> #include <auROXTL/auTryConstructUtils.hpp>
#include <auROXTL/auTryCallUtils.hpp> #include <auROXTL/auTryCallUtils.hpp>
#include <auROXTL/Objects/SafeDestroy.hpp> #include <auROXTL/Objects/SafeDestroy.hpp>
#include <auROXTL/Objects/ResetMember.hpp> #include <auROXTL/Objects/ResetMember.hpp>