Zero overhead utilities for preventing bugs at compile time
function_ref
(#154).strong_typedef
on MSVC (#159).flag_set::from_int
(#161).Full Changelog: https://github.com/foonathan/type_safe/compare/v0.2.3...v0.2.4
import std
(#141, #147).strong_typedef
structural so it can be used as NTTP (#126).Full Changelog: https://github.com/foonathan/type_safe/compare/v0.2.2...v0.2.3
TYPE_SAFE_ARITHMETIC_UB
CMake option by TYPE_SAFE_ARITHMETIC_POLICY
to enable checked arithmetic by default (#106)integer
(#104)This release is mainly bugfixes:
explicit_bool
strong typedefwith()
of array_ref
This release took a long time, so here are just the most important changes.
downcast()
utility functionboolean
, integer
, floating_point
and strong_typedef
object_ref<T>
and and xvalue_ref<T>
array_ref<T>
function_ref<T>
flag_set<T>
distance_t
to difference_t
index_t
and difference_t
optional
now auto-unwraps, removed unwrap()
functionoptional_ref
creation function now opt_ref()
instead of ref()
, but more than beforeoptional_ref<T>::value_or()
optional_for<T>
utility typedefwith()
and make it more optimizer friendlywith()
for tagged_union
void
returning function objectsconstrained_type
constrained_ref
throwing_verifier
for constrained_ref
along with sanitize()
helper functionsbounded_type
strong_typedef
constexpr
support to strong_typedef
strong_typedef
constrained_type
constexpr
get()
for rvaluesThanks to @johelgp, @xtofl, @nicola-gigante, @BRevzin, @verri, @lisongmin, @Manu343726, @MandarJKulkarni, @gerboengels.
Just a first release for conan.