Skip to content

Releases: foonathan/type_safe

v0.2.4

22 Apr 20:30
1dbea79
Compare
Choose a tag to compare
  • Minimum CMake version is now 3.5 (#156).
  • Better module support (#151).
  • Prevent dangling double-wrapping of function_ref (#154).
  • Use EBO for strong_typedef on MSVC (#159).
  • Add flag_set::from_int (#161).

New Contributors

Full Changelog: v0.2.3...v0.2.4

Version 0.2.3

18 Jun 10:42
Compare
Choose a tag to compare
  • Enable the use of import std (#141, #147).
  • Make strong_typedef structural so it can be used as NTTP (#126).
  • Add safe integer comparisons (#134).
  • Enable EBO on MSVC (#128).
  • Various bugfixes and CMake improvements (#132, #133, #137, #139, #143, #146, #148).

New Contributors

Full Changelog: v0.2.2...v0.2.3

Version 0.2.2

13 Oct 17:29
Compare
Choose a tag to compare
  • Replace TYPE_SAFE_ARITHMETIC_UB CMake option by TYPE_SAFE_ARITHMETIC_POLICY to enable checked arithmetic by default (#106)
  • Be less strict in the signed/unsigned conversion of integer (#104)
  • Various bugfixes (#97, #108, #111, #115)

Version 0.2.1

12 Feb 16:03
Compare
Choose a tag to compare

This release is mainly bugfixes:

  • Added explicit_bool strong typedef
  • Fixed forwarding bug in with() of array_ref
  • Silenced some warnings
  • Improved CMake configuration

Version 0.2

04 May 09:10
Compare
Choose a tag to compare
Version 0.2 Pre-release
Pre-release

Version 0.2

This release took a long time, so here are just the most important changes.

  • Added downcast() utility function
  • Fixed GCC 4.8 and clang support
  • Improved documentation
  • Improved CMake and added Conan support
  • Hashing support for boolean, integer, floating_point and strong_typedef

Vocabulary Types

  • Added object_ref<T> and and xvalue_ref<T>
  • Added array_ref<T>
  • Added function_ref<T>
  • Added flag_set<T>
  • Breaking: renamed distance_t to difference_t
  • Improved index_t and difference_t

Optional & Variant:

  • Breaking: optional now auto-unwraps, removed unwrap() function
  • Breaking: optional_ref creation function now opt_ref() instead of ref(), but more than before
  • Breaking: Removed optional_ref<T>::value_or()
  • Added optional_for<T> utility typedef
  • Added support for additional parameters to with() and make it more optimizer friendly
  • Added with() for tagged_union
  • Improved map functions: additional arguments, member function pointers, void returning function objects
  • Bugfix for trivial variant copy/move/destroy

Type Safe Building Blocks:

  • Added pointer like access to constrained_type
  • Added constrained_ref
  • Added throwing_verifier for constrained_ref along with sanitize() helper functions
  • Added literal operator to create a static bound of bounded_type
  • Added bitwise operators for strong_typedef
  • Added constexpr support to strong_typedef
  • Added support for mixed operators in strong_typedef
  • Made constrained_type constexpr
  • Fixed strong typedef get() for rvalues

Thanks to @johelgp, @xtofl, @nicola-gigante, @brevzin, @verri, @lisongmin, @Manu343726, @MandarJKulkarni, @gerboengels.

Version 0.1

24 Dec 17:25
Compare
Choose a tag to compare
Version 0.1 Pre-release
Pre-release

Just a first release for conan.