Releases · nonstd-lite/string-view-lite
1.8.0
This release of string_view lite contains the following additions, fixes and changes.
Additions
- Add configuration macro
nssv_CONFIG_CONSTEXPR11_STD_SEARCH(#50, thanks @oliverlee). - Add example/CMakeLists.txt (nonstd-lite-project issue 56).
Fixes
- Fix build with gcc 4.9 as the first version of find() can't be constexpr then (#54, thanks @DerDakon).
- Fix cmake config file to use
@package_nspace@(nonstd-lite issue 68).
Changes
- Include
<string>beforestd::basic_string(#58, thanks @StephanTLavavej). - Update actions/checkout in GitHub Actions to v4 (#57, thanks @striezel).
- Remove Travis CI configuration and badge (#56, thanks @striezel).
- Do not cancel all jobs in a workflow if one fails. (#55, thanks @striezel, nonstd-lite-project issue 71).
- Silence compiler warnings for gcc 4.7 and before (#53, thanks @DerDakon).
- Add badge 'on vcpkg' (nonstd-lite-project issue 72).
- Remove gcc 8 and clang 8, 9, 10 from GitHub CI matrix (nonstd-lite issue 69).
- Use toplevel unit_name (nonstd-lite-project 56).
Full Changelog: v1.7.0...v1.8.0
1.7.0
This release of string_view lite contains the following additions, fixes and changes.
Additions:
- Add prevention to construct, convert from
nullptr, p2166 (#47, thanks @mbs-c). - Add configuration option
nssv_CONFIG_NO_STREAM_INSERTIONto omit streams (#42, thanks @theShmoo). - Add
export()toCMakeLists.txt, enabling importing targets, nonstd-lite-project issues 50. - Add script
tc-cl.bat, nonstd-lite-project issues 54. - Add GitHub Actions CI.
Fixes:
- Fix prevention to construct, convert from
nullptrfor presence of=delete, p2166 (#47). - Fix check for stream to use sentry (#46, thanks mprather).
- Fix parameter type from
chartoCharTfor older compilers (#45, thanks @Elite-stay). - Fix link to LLVM libc++ implementation of
string_view(thanks @striezel, #44). - Fix typos in string_view.hpp (thanks @striezel, #43).
- Fix identical mangled names for clang on Windows (#40, thanks @nickhutchinson).
Changes:
- Make
find()constexpr in C++11 (#48, #49, thanks @eyalroz). - Get rid of non-constexpr
std::swap()(#41, thanks @stdbug). - Replace
_CPPUNWINDwith_HAS_EXCEPTIONS(thanks @DBJDBJ, nonstd-lite-project issue 49). - Change value used with
*_CPP20_OR_GREATERto202002L(nonstd-lite-project issue 60). - Update actions/checkout in GitHub Actions to v3 (#51, nonstd-lite-project issue 63).
- Add msvc (windows-2022) image to GitHub Actions, nonstd-lite-project issue 62.
- Remove msvc (windows-2016) image from GitHub Actions (thanks @xavier2k6, nonstd-lite-project issue 61).
- Handle lest test framework as system include to prevent warnings.
1.6.0
This release of string_view lite adds configuration via the Tweak header mechanism as proposed by Colby Pike (@vector-of-bool).
Additions:
- Add 'Tweak header' support via
nonstd/string_view.tweak.hpp
Fixes:
- Fix usage of builtin for MSVC 1920/14.2 (VS2019) for pre-C++17
- Fix to use
nssvprefix in configuration int.bat,tc.bat,tg.batbatch files intest/
Changes:
- Add Visual Studio 2019 to the Appveyor build matrix (#39)
1.5.1
This release of string_view lite fixes the presence of char type specializations for compare() and length() that use builtin functions memcmp and strlen in relation to the availability of constexpr.
Fixes:
- Fix usage of char type builtins or mem-functions with respect to constexpr-ness (#34, thanks to @mcskatkat) (#38)
Changes:
- Add tag [.builtins] to inspect relevant macros.
1.5.0
This release of string_view lite provides constexpr comparison via compare() for C++14 (#34, thanks to @mcskatkat).
It contains the following fixes and changes:
Fixes:
- Fix
detail::length()for non-optimized compilation (#33, thanks to @augustheart) - Fix operator
operator!=(basic_string_view, std::basic_string).
Changes:
- Provide
constexprcomparison viacompare()for C++14 (#34, thanks to @mcskatkat) - For char type, use
__builtin_memcmp(),__builtin_strlen(),memcmp()orstrlen()(#34, thanks to @mcskatkat). - Express
operator!=()inoperator==() - Add IDE folders/files and build folder to .gitignore (.vs, .vscode, CodeBlocks, build)
- Add .editorconfig file
1.4.0
This release of string_view lite contains the following fixes and changes:
Fixes:
- Fix
operator==()on wstring_view and wchar_t raw string (#30, thanks to @gongminmin).
Changes:
- Add option -Wshadow for gcc, clang.
- Avoid shadowing (#31, thanks @mattyclarkson).
- Add string_view comparison with
std::stringandconst char *for older compilers. - Non-recursive variant of
detail::length()for compilers with maximum recursion depth in compile-timeconstexprevaluation (#29, thanks @AdmiralCurtiss). - Improve MSVC version table, nonstd-lite-project issue 38.
- Point conan badge to conan-center (thanks @flexferrum).
- Use
#includein code on godbolt, nonstd-lite-project issue 36.
1.3.0
In this release of string_view lite, string_view.hpp is unchanged (apart from it's version number).
Changes:
- Change vcpkg install to use CMake
- Replace underscore with dash in unit name
- Add settings options to conanfile (thanks to @ngrodzitski)