Skip to content

make format_int constexpr? #4031

Closed
Closed
@dixlorenz

Description

@dixlorenz

I was looking at format_int and it seems to me that all the functions that it calls are constexpr in c++20. I tried simply prefixing everything in format_int with constexpr, now this compiles:

static_assert(fmt::format_int(DLCL::to_integral(42)).str() == "42");

Is there a reason format_int is not constexpr?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions