mirror of
https://github.com/boostorg/static_string.git
synced 2026-08-28 07:36:40 +02:00
c6cd8074abd0ff8cffc2e9af514a9a742892dc6f
The defaulted operators had the wrong semantics, as they compared the
entire data_ buffer. The bug showed up when shrinking:
static_cstring<10> s("hello");
s.assign("hi", 2); // data_[3..4] still "lo"
static_cstring<10> fresh("hi");
assert(s == fresh); // FAILED
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)
Languages
C++
98.5%
CMake
0.9%
Shell
0.5%
HTML
0.1%