Version 2.2.0 - #127
Merged
Merged
Conversation
* ci: update test ci. * V2.2.0/dev/no experimental code (#116) * chore: remove macro EMBED_FN_CONFIG_USE_BIG_DEFAULT_BUFFER. * resolve TODO. * Remove `safe_fn`, refactor `fn`/`unique_fn`, and add `classic_fn`. (#117) * refactor: WIP: refactor fn, fn_ref. deprecated safe_fn and add classic_fn. * feat: propagate noexcept qualifiers through make_fn and allow noexcept signatures for fn/unique_fn * chore: remove view_buf and update documents. * chore: remove outdate comments. * docs: update documents. * resolve review comments. * style: rename noexcept_qualify_like as get_correct_signature * docs: update ducuments. * fix: update link in `CONTRIBUTING.md`. * docs: fix mismatch descriptions. * revert: revert test-ci. * resolve some review comments. * revert: revert test for __safe_fn. * resolve agent review comments. * resolve agent review comments.
* docs: update version number. * style: optimize EMBED_DETAIL_FAIL_MESSAGE and EMBED_DETAIL_ASSERT_MESSAGE. * fix: [ref.ctor]/11.2 => [func.wrap.ref.ctor]/11.2 * test: add a test for self assignment. * fix: fix bug in test. * docs: add documents for EMBED_FN_HOOK_DEBUG. * docs: update the Breaking Changes chapter in release notes.
* docs: update README.md. * docs: adjust comments. * test: add incomplete failure tests. * test: adjust CMakeLists.txt * docs: adjust CONTRIBUTING.md . * chore: remove unused macro in `test_fallback_macros.hpp`. * test: update `test_fallback_macros.hpp`. * test: add test for ebd_test_implicit_func_ptr. * docs: rewrite comments for `operator*()`. * test: add more std::in_place_type tests. * todo: add todo.
* feat: support multi-params for make_fn<Wrapper>. * test: add rest for new feature. * docs: update README.md and add todo. * docs: update documents. * docs: update `release_notes.md`.
Kim-J-Smith
commented
Aug 8, 2026
Owner
Author
|
Note to self: Deprecating function in C++29. |
Owner
Author
StdOperatorWrapper.FunctionWrapperAsParams:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
🔧 Fixed Bugs
operator*now returns anoexceptfunction pointer when the stored signature includesnoexcept, instead of returningnullptr. (Removesafe_fn, refactorfn/unique_fn, and add classic_fn. #117)ebd::fnandebd::unique_fnnow callstd::terminate()on empty call instead of throwingstd::bad_function_call. If you needstd::bad_function_callon empty call, use the newebd::classic_fn. (Removesafe_fn, refactorfn/unique_fn, and add classic_fn. #117)make_fnnow preserves thenoexceptqualifier when deducing signatures for lambdas and functors (it was previously stripped forebd::fn/ebd::unique_fn). For example,make_fn([]() noexcept {})now yieldsfn<void() const noexcept>instead offn<void() const>(Since C++17). (Removesafe_fn, refactorfn/unique_fn, and add classic_fn. #117)ebd::safe_fnis deprecated. Useebd::fnfor terminate-on-empty, orebd::basic_fndirectly if you need theAssertObjectNoThrowguarantee. (Removesafe_fn, refactorfn/unique_fn, and add classic_fn. #117)EMBED_FN_CONFIG_USE_BIG_DEFAULT_BUFFERhas been removed. (V2.2.0/dev/no experimental code #116)fn_refobject fromnullptrin the debugging mode, then regardless of whether the user has defined the macroEMBED_FN_HOOK_DEBUGor not, thestd::terminate()function will be called. (Update documents and add a test for self assignment. #121)ebd::fn_refCTAD deduction guides forstd::constant_wrapper(C++26) have been removed. Useebd::make_fn(std::cw<...>)instead. (feat: support make_fn(std::cw<>). #124)✨ New Features
ebd::classic_fn, a copyable wrapper that throwsstd::bad_function_callon empty call (likestd::function). (Removesafe_fn, refactorfn/unique_fn, and add classic_fn. #117)make_fnoverload fornoexceptfunction pointers (C++17+), which preserves thenoexceptqualifier in the wrapper's signature. (Removesafe_fn, refactorfn/unique_fn, and add classic_fn. #117)make_fnfor member function pointers and member object pointers. (Removesafe_fn, refactorfn/unique_fn, and add classic_fn. #117)make_fn<FnWrapper>now accepts multiple arguments, enabling in-place construction with a specific wrapper type, e.g.make_fn<ebd::classic_fn>(std::in_place_type<Functor>, args...). (Support multiple parameters inmake_fn<Wrapper>. #123)make_fnoverloads forstd::constant_wrapper(C++26+), which deduce and return anebd::fn_reffromstd::cw<fn>orstd::cw<member_fn>+ object. (feat: support make_fn(std::cw<>). #124)🛠️ Optimizations and Improvements
noexcept_qualify_liketrait with a simplerget_correct_signaturetrait that decides based on wrapper config (IsView || !IsThrowing). (Merge dev-branch into trunk. #120)sig_with_noexceptfromget_unique_signature;typenow directly includesnoexceptwhen applicable. (Removesafe_fn, refactorfn/unique_fn, and add classic_fn. #117)@todoand@experimentalcomments. (V2.2.0/dev/no experimental code #116)📌 Notes
ebd::fn_viewandebd::safe_fnin v2.2.0. Instead of removal, both are kept as deprecated aliases (see the Breaking Changes section above) to avoid breaking existing code.