From 5f1f2e470f637f83bba6a2353af5c7e44ef0cd9c Mon Sep 17 00:00:00 2001 From: Kim-J-Smith <3440910457@qq.com> Date: Thu, 30 Jul 2026 21:46:41 +0800 Subject: [PATCH 1/2] chore: remove macro EMBED_FN_CONFIG_USE_BIG_DEFAULT_BUFFER. --- include/embed/embed_function.hpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/include/embed/embed_function.hpp b/include/embed/embed_function.hpp index 4040a7e..e869c70 100644 --- a/include/embed/embed_function.hpp +++ b/include/embed/embed_function.hpp @@ -16,9 +16,6 @@ // Just like function pointers, it is quick and efficient. -/// @deprecated @b EMBED_FN_CONFIG_USE_BIG_DEFAULT_BUFFER -/// If this macro is defined, bigger default buffer size will be used. - /// @b EMBED_FN_CONFIG_DISABLE_SMART_FORWARD /// If this macro is defined, `smart_forward_t` will fall back to Perfect Forwarding. @@ -1119,14 +1116,7 @@ inline namespace fn_traits { // The buffer size for ebd::fn_ref. Stop supporting pointer-to-members. static constexpr std::size_t ref_buf = sizeof(void (*) ()); static constexpr std::size_t view_buf = ref_buf; -#if defined(EMBED_FN_CONFIG_USE_BIG_DEFAULT_BUFFER) - /// @deprecated @todo TODO: Remove this in version-2.2.0. - static constexpr std::size_t value_c1 = 6 * sizeof(void*); - static constexpr std::size_t value_c2 = sizeof(::std::function); - static constexpr std::size_t value = value_c1 > value_c2 ? value_c1 : value_c2; -#else static constexpr std::size_t value = sizeof(void (UndefinedClass::*) ()); -#endif // The alignment for owning wrappers (ebd::fn, ebd::unique_fn, ebd::safe_fn). // Using alignof(std::max_align_t) ensures that objects with the maximum @@ -3474,7 +3464,6 @@ namespace detail { # undef EMBED_NODISCARD # undef EMBED_DEPRECATED -# undef EMBED_FN_CONFIG_USE_BIG_DEFAULT_BUFFER # undef EMBED_FN_CONFIG_DISABLE_SMART_FORWARD # undef EMBED_FN_CONFIG_UNDEF_MACROS # undef EMBED_FN_HOOK_DEBUG From 4d73a986d2b4fe1a5a88f940f33586c288d62195 Mon Sep 17 00:00:00 2001 From: Kim-J-Smith <3440910457@qq.com> Date: Thu, 30 Jul 2026 21:48:24 +0800 Subject: [PATCH 2/2] resolve TODO. --- include/embed/embed_function.hpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/embed/embed_function.hpp b/include/embed/embed_function.hpp index e869c70..d3e5be2 100644 --- a/include/embed/embed_function.hpp +++ b/include/embed/embed_function.hpp @@ -1401,7 +1401,6 @@ inline namespace fn_traits { using get_member_fn_type_t = typename get_member_fn_type::type; #if __cpp_lib_reflection >= 202506L - /// @todo experimental `std::meta::is_complete_type` // Use template parameter `Val` to avoid violating ODR. template consteval bool is_complete_here() noexcept { return Val; } @@ -2877,8 +2876,6 @@ namespace crtp_mixins { #if __cpp_lib_constant_wrapper >= 202603L - /// @todo experimental - // Create function reference with given `std::constant_wrapper` param. template requires Config::isView