Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions include/embed/embed_function.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down Expand Up @@ -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<void()>);
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
Expand Down Expand Up @@ -1411,7 +1401,6 @@ inline namespace fn_traits {
using get_member_fn_type_t = typename get_member_fn_type<Signature>::type;

#if __cpp_lib_reflection >= 202506L
/// @todo experimental `std::meta::is_complete_type`
// Use template parameter `Val` to avoid violating ODR.
template <typename T, bool Val = std::meta::is_complete_type(^^T)>
consteval bool is_complete_here() noexcept { return Val; }
Expand Down Expand Up @@ -2887,8 +2876,6 @@ namespace crtp_mixins {

#if __cpp_lib_constant_wrapper >= 202603L

/// @todo experimental

// Create function reference with given `std::constant_wrapper` param.
template <auto Val, typename Fn>
requires Config::isView
Expand Down Expand Up @@ -3474,7 +3461,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
Expand Down