1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:17:36 +00:00

AK: Make C++ concepts support mandatory for compilers

The latest GCC and Clang versions both support this, so we can freely
use these in our code.
This commit is contained in:
Daniel Bertalan 2021-06-19 13:13:31 +02:00 committed by Ali Mohammad Pur
parent 4c0c4f3102
commit 985adcca38
2 changed files with 6 additions and 18 deletions

View file

@ -12,16 +12,10 @@
namespace AK {
// HACK: This is just here to make syntax highlighting work in Qt Creator.
// Once it supports C++20 concepts, we can remove this.
#if defined(__cpp_concepts) && !defined(__COVERITY__)
template<typename T>
concept PointerTypeName = IsPointer<T>;
template<PointerTypeName T>
#else
template<typename T, typename EnableIf<IsPointer<T>, int>::Type = 0>
#endif
template<PointerTypeName T>
class Userspace {
public:
Userspace() = default;