Skip to content

c++23 required? #1

Description

@usefulcat

./ct_str/details/byte_store.hpp:84:45: error: ‘hex_storage’ defined ‘static’ in ‘constexpr’ function only available with ‘-std=c++23’ or ‘-std=gnu++23’ [-Wtemplate-body]

I'm no constexpr expert, so I don't know if there is a reasonable solution to this for c++20. If not then the requirement of c++23 should probably be mentioned in the docs.

ETA: or maybe just enclose that method inside #if __cplusplus >= 202302

This is from gcc 15.2 on Linux using -std=c++20.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions