function2 v4.1.0 Release Notes

Release Date: 2020-04-02 // about 4 years ago
    • 🛠 Fix reference types in the return type #35
    • ➕ Add a workaround for a MSVC 16.3.1 compiler regression #29
    • Propagate the empty state correctly into the erasure from function like types #27
    • 🛠 Fix an issue that owning unique functions were accidentally copyable #23
    • 🛠 Fix a typo in the function property #20
    • And more minor improvements and code cleanups

Previous changes from v4.0.0

    • 👌 Improved CMake packaging it is now possible to:
      • Install function2 properly
      • Include a function2 subdirectory as subproject
    • The minimum CMake version was raised to 3.11 because of issues with imported interface
      targets on lower versions.
    • Interface breaking change: The capacity is now an integral_type like type rather than
      specifying the size directly, this makes it possible to also specify the alignment and
      👍 it works better with capacities that shall hold a forward declared object which is defined later.

      struct my_capacity { static constexpr std::size_t capacity = sizeof(my_type); static constexpr std::size_t alignment = alignof(my_type); };