mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-05 13:14:29 +02:00
build: explicit this enabled with a workaround for clang-18
This commit is contained in:
@@ -80,7 +80,14 @@
|
|||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if (defined MP_UNITS_COMP_CLANG && MP_UNITS_COMP_CLANG < 17)
|
// TODO revise the below when clang-18 is released
|
||||||
|
#if MP_UNITS_COMP_CLANG >= 18 && !defined __cpp_explicit_this_parameter
|
||||||
|
|
||||||
|
#define __cpp_explicit_this_parameter
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined MP_UNITS_COMP_CLANG && MP_UNITS_COMP_CLANG < 17
|
||||||
|
|
||||||
#define MP_UNITS_CONSTEVAL constexpr
|
#define MP_UNITS_CONSTEVAL constexpr
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user