Skip to content
This repository was archived by the owner on Jun 15, 2025. It is now read-only.
This repository was archived by the owner on Jun 15, 2025. It is now read-only.

Feature: full constexpr support for ArrayString #11

@dermojo

Description

@dermojo

It shall be possible to construct and query ArrayString[W] instances at compile time.
This means, the following methods shall be constexpr:

  • Default and copy constructors (move isn't possible for constexpr objects)
  • all const methods - size(), data(), find*(), ...

Example:

constexpr spsl::ArrayStringBase<char, 64> a1("I'm a stack-based string and can store 64 characters + NUL");
static_assert(a1.length() == 58, "oops...");

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions