perf(templates): fix the redefinition of Swap function in private namespaces
This commit is contained in:
parent
3150e07f6b
commit
e1871de73b
@ -1,8 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "CoreTypes.h"
|
#include "CoreTypes.h"
|
||||||
#include "TypeTraits/Miscellaneous.h"
|
#include "TypeTraits/TypeTraits.h"
|
||||||
|
|
||||||
|
|
||||||
NAMESPACE_REDCRAFT_BEGIN
|
NAMESPACE_REDCRAFT_BEGIN
|
||||||
NAMESPACE_MODULE_BEGIN(Redcraft)
|
NAMESPACE_MODULE_BEGIN(Redcraft)
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "CoreTypes.h"
|
#include "CoreTypes.h"
|
||||||
|
#include "Templates/Utility.h"
|
||||||
#include "Concepts/Comparable.h"
|
#include "Concepts/Comparable.h"
|
||||||
#include "TypeTraits/TypeTraits.h"
|
#include "TypeTraits/TypeTraits.h"
|
||||||
#include "Miscellaneous/AssertionMacros.h"
|
#include "Miscellaneous/AssertionMacros.h"
|
||||||
|
@ -1,7 +1,9 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "CoreTypes.h"
|
#include "CoreTypes.h"
|
||||||
#include "TypeTraits/TypeTraits.h"
|
#include "TypeTraits/CompositeType.h"
|
||||||
|
#include "TypeTraits/Miscellaneous.h"
|
||||||
|
#include "TypeTraits/SupportedOperations.h"
|
||||||
|
|
||||||
NAMESPACE_REDCRAFT_BEGIN
|
NAMESPACE_REDCRAFT_BEGIN
|
||||||
NAMESPACE_MODULE_BEGIN(Redcraft)
|
NAMESPACE_MODULE_BEGIN(Redcraft)
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#include "CoreTypes.h"
|
#include "CoreTypes.h"
|
||||||
|
#include "Templates/Utility.h"
|
||||||
#include "TypeTraits/HelperClasses.h"
|
#include "TypeTraits/HelperClasses.h"
|
||||||
|
|
||||||
NAMESPACE_REDCRAFT_BEGIN
|
NAMESPACE_REDCRAFT_BEGIN
|
||||||
@ -9,10 +10,6 @@ NAMESPACE_MODULE_BEGIN(Utility)
|
|||||||
|
|
||||||
NAMESPACE_PRIVATE_BEGIN
|
NAMESPACE_PRIVATE_BEGIN
|
||||||
|
|
||||||
// This is a copy of a declaration to prevent circular references, originally defined in Templates/Utility.h
|
|
||||||
template <typename T> requires TIsMoveConstructible<T>::Value&& TIsMoveAssignable<T>::Value
|
|
||||||
constexpr void Swap(T& A, T& B);
|
|
||||||
|
|
||||||
template <typename T, typename U>
|
template <typename T, typename U>
|
||||||
concept CSwappableWith =
|
concept CSwappableWith =
|
||||||
requires(T&& A, U&& B)
|
requires(T&& A, U&& B)
|
||||||
|
Loading…
Reference in New Issue
Block a user