2
0
mirror of https://github.com/Laupetin/OpenAssetTools.git synced 2026-03-06 21:13:02 +00:00

chore: remove utilities from ClassUtils that were meant for cpp backwards compatibility

This commit is contained in:
Jan Laupetin
2026-03-05 21:50:00 +00:00
parent 96766f8500
commit bc16febfe2

View File

@@ -4,30 +4,6 @@
#define STR(x) #x
#if defined(_MSVC_LANG)
#define _CPP_VERSION _MSVC_LANG
#elif defined(__cplusplus)
#define _CPP_VERSION __cplusplus
#else
#define _CPP_VERSION 0
#endif
#ifdef _NODISCARD
#undef _NODISCARD
#endif
#ifdef _NORETURN
#undef _NORETURN
#endif
#if _CPP_VERSION >= 201703L
#define _NODISCARD [[nodiscard]]
#define _NORETURN [[noreturn]]
#else
#define _NODISCARD
#define _NORETURN
#endif
template<class T> struct Movable
{
mutable T m_val;