Skip to content

Fallback to fmtlib When std::format Unavailable #2

@mfisher31

Description

@mfisher31

Solution

Currently there is workaround code in lui::String that checks std::format availability. If not present, then formatting is don't with std::to_string which is a performance hit.

Solution

fallback to fmtlib/fmt. This can be a header-only library, supports CMake, and I believe was rolled in to c++ itself.

Add a file lui/format.hpp that will use std::format if availalbe, otherwise use fmt::format.

Fallback Logic

Details needed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions