Skip to content

unpacked make_arg should also assert on unformattable arguments #2818

Description

@timsong-cpp
#include <fmt/format.h>

struct E {};

int main() {
    fmt::print(fmt::runtime(""), 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, E());
}

This compiles and produces a linker error from the undefined reference to value(unformattable) constructor. The static_asserts are only engaged when there are 15 or fewer format arguments.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions