Fix wrong use of deprecation macro (#3941)

This commit is contained in:
Antoine Prouvost 2025-05-16 09:48:48 +02:00 committed by GitHub
parent 06000139c9
commit cc7d2d5ab3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View File

@ -8,15 +8,15 @@
#define MAMBA_UTIL_DEPRECATION_HPP
#if __cplusplus >= 202002L
#define MAMBA_UTIL_COMPARE_DEPRECATED [[deprecated("Use C++20 functions with the same name")]]
#define MAMBA_DEPRECATED_CXX20 [[deprecated("Use C++20 functions with the same name")]]
#else
#define MAMBA_DEPRECATED_CXX20
#define MAMBA_DEPRECATED_CXX20 [[]]
#endif
#if __cplusplus >= 202302L
#define MAMBA_UTIL_COMPARE_DEPRECATED [[deprecated("Use C++23 functions with the same name")]]
#define MAMBA_DEPRECATED_CXX23 [[deprecated("Use C++23 functions with the same name")]]
#else
#define MAMBA_DEPRECATED_CXX23
#define MAMBA_DEPRECATED_CXX23 [[]]
#endif
#endif

View File

@ -13,7 +13,7 @@
namespace mamba::util
{
MAMBA_DEPRECATED_CXX20 struct identity
struct MAMBA_DEPRECATED_CXX20 identity
{
template <typename T>
constexpr auto operator()(T&& t) const noexcept -> T&&;