mirror of
https://github.com/boostorg/static_string.git
synced 2026-01-19 04:42:12 +00:00
6f0c00b2687f252b4a1e9f5712013de97688516a
The iterator-based insert(const_iterator, size_type, value_type)
function relies on traits_type::move() to shift the existing null
terminator to its new position. Clang 3.7's constexpr evaluator does not
handle this correctly, causing the following test to fail:
static_string<3>{"ab"}.insert(2, 1, 'c') == "abc"
Add an explicit term() call, guarded by a preprocessor conditional for
Clang 3.7, to ensure proper null termination.
Boost.StaticString
| Branch | GHA CI | Appveyor | Azure Pipelines | codecov.io | Docs | Matrix |
|---|---|---|---|---|---|---|
master |
||||||
develop |
Introduction
This library provides a dynamically resizable string of characters with
compile-time fixed capacity and contiguous embedded storage in which the
characters are placed within the string object itself. Its API closely
resembles that of std::string.
License
Distributed under the Boost Software License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at https://www.boost.org/LICENSE_1_0.txt)
Description
Languages
C++
98.5%
CMake
0.9%
Shell
0.5%
HTML
0.1%