CLang advertises C++-26 features but warns us when we use them :/.

This commit is contained in:
Patrick 2025-06-21 15:07:12 +02:00
parent 465a97ded5
commit 8a9df15dd0

View File

@ -4,6 +4,12 @@
#if !defined(MIJIN_INTERNAL_VERSION_SUPPORT_HPP_INCLUDED)
#define MIJIN_INTERNAL_VERSION_SUPPORT_HPP_INCLUDED 1
#include "../detect.hpp"
#if MIJIN_COMPILER == MIJIN_COMPILER_CLANG
#pragma clang diagnostic ignored "-Wc++26-extensions"
#endif
#if defined(__cpp_deleted_function)
#define MIJIN_DELETE(reason) = delete(reason)
#else