Skip to content

format_as converting struct to tuple no longer works #3763

Description

@hewillk
#include <fmt/ranges.h>

struct Data {
  int a = 3;
  double b = 0.42;
};

auto format_as(const Data& data)
{ return std::tie(data.a, data.b); }

int main() {
  fmt::println("{}", Data{});
}

https://godbolt.org/z/d8a7EsKb4

The above code works on 10.1.1, but not on trunk.

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