Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: mark fmt::streamed() as constexpr #3650

Merged
merged 1 commit into from
Sep 19, 2023
Merged

fix: mark fmt::streamed() as constexpr #3650

merged 1 commit into from
Sep 19, 2023

Commits on Sep 19, 2023

  1. fix: mark fmt::streamed() as constexpr

    Because it's just performing a very basic type conversion that can be
    done at constexpr time.
    
    My use case simultaneously creates a
    `fmt::basic_format_string<some_type_conversion<Args...>>` instance and
    performs `some_type_conversion<Args>(args)...`. `some_type_conversion`
    optionally applies `fmt::streamed(arg)` to a subset of types. This needs
    to be `constexpr` because `basic_format_string`'s constructor is
    `consteval`.
    muggenhor committed Sep 19, 2023
    Configuration menu
    Copy the full SHA
    eb9fe3c View commit details
    Browse the repository at this point in the history