function2 v4.0.0 Release Notes

Release Date: 2019-01-04 // almost 6 years ago
    • ๐Ÿ‘Œ 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); };