Gennaro Prota c6cd8074ab Fix the comparison operators for basic_static_cstring
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
2026-04-21 11:59:41 +02:00
2025-10-24 11:57:55 +02:00
2025-10-22 18:35:38 +02:00
2025-12-19 18:26:40 +01:00
2020-04-18 14:09:20 -04:00
2025-10-07 10:19:31 +02:00
2022-10-31 16:09:33 -07:00
2025-10-24 11:57:55 +02:00
2019-09-13 06:29:15 -07:00
2025-10-22 19:11:09 +02:00
2019-09-13 06:29:15 -07:00
2025-10-24 11:58:47 +02:00
2020-03-02 19:29:31 -05:00
2019-09-13 06:29:15 -07:00
2025-10-24 11:59:10 +02:00

Boost.StaticString

Branch GHA CI Appveyor Azure Pipelines codecov.io Docs Matrix
master Build Status Build status Build Status codecov Documentation Matrix
develop Build Status Build status Build Status codecov Documentation Matrix

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.

Documentation

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)

S
Description
A fixed capacity dynamically sized string
Readme
1.4 MiB
Languages
C++ 98.5%
CMake 0.9%
Shell 0.5%
HTML 0.1%