aboutsummaryrefslogtreecommitdiff
path: root/src/common/Utilities/advstd.h
diff options
context:
space:
mode:
authorShauren <shauren.trinity@gmail.com>2023-01-07 22:38:21 +0100
committerShauren <shauren.trinity@gmail.com>2023-08-12 17:56:16 +0200
commitd251ab647dd4f48603b37b7150627a39e9a30f45 (patch)
tree0915800e74a384cc096982f9344fa86f965dadf4 /src/common/Utilities/advstd.h
parent58f0c4b15a48772e4b9280a3e35fba90ecc4c31f (diff)
Core/Misc: Migrate our c++20 advstd to standard features
(cherry picked from commit 7830e5a7a1b93b0cd083baa3b70a0cfeb475f5f5)
Diffstat (limited to 'src/common/Utilities/advstd.h')
-rw-r--r--src/common/Utilities/advstd.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/src/common/Utilities/advstd.h b/src/common/Utilities/advstd.h
index 2552f7d12bb..ff2717c9755 100644
--- a/src/common/Utilities/advstd.h
+++ b/src/common/Utilities/advstd.h
@@ -18,26 +18,9 @@
#ifndef TRINITY_ADVSTD_H
#define TRINITY_ADVSTD_H
-#include <cstddef>
-#include <type_traits>
-
// this namespace holds implementations of upcoming stdlib features that our c++ version doesn't have yet
namespace advstd
{
- // C++20 advstd::remove_cvref_t
- template <class T>
- using remove_cvref_t = std::remove_cv_t<std::remove_reference_t<T>>;
-
- // C++20 std::type_identity
- template <typename T>
- struct type_identity
- {
- using type = T;
- };
-
- // C++20 std::type_identity_t
- template <typename T>
- using type_identity_t = typename type_identity<T>::type;
}
#endif