Skip to content

0.18.0

Compare
Choose a tag to compare
@martinmoene martinmoene released this 11 Nov 18:44
· 506 commits to master since this release

This release of gsl lite contains a variety of changes.

Fixes
Defaulted-constructors of span have been fixed with respect to noexcept for GNUC before version 4.9.0 (adapted PR #58, thanks to Dmitry Banschikov, @ubique).

Removals
Type span::size_type has been removed. It was deprecated since 0.12.0 (issue #42).

Additions
This release adds configuration macro gsl_CONFIG_SPAN_INDEX_TYPE. Its default is size_t, the type that was already used as span's index type (issue #31). A constructor for std::array<> const &. has been added to span besides the existing non-const one. Further, constructors for gsl::unique_ptr and gsl::shared_ptr have been added to span (issue #48).

Changes
Span's unconstrained constructor for compilers that don't support SFINAE is now disabled at default to not inhibit construction from gsl::unique_ptr and gsl::shared_ptr. Warnings on conversions [-Wconversion] and warnings on old-style casts [-Wold-style-cast] are prevented (issue #59). Finally, the lest test framework has been updated to version 1.27.2.