mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 05:06:24 +00:00
chore(Core/Misc): Clean up workarounds (#17870)
* Clean advstd to use std c++20 features * Use ABORT instead of std::abort Co-authored-by: Shauren <shauren.trinity@gmail.com>
This commit is contained in:
@@ -24,22 +24,6 @@
|
||||
// this namespace holds implementations of upcoming stdlib features that our c++ version doesn't have yet
|
||||
namespace advstd
|
||||
{
|
||||
// This workaround for std::remove_cvref_t, std::type_identify is needed for GCC 8...
|
||||
/// @todo: remove when we drop GCC 8 support. https://en.cppreference.com/w/cpp/compiler_support/20
|
||||
// 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 // _ADV_STD_H_
|
||||
|
||||
Reference in New Issue
Block a user