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

Cannot use ostream support on fmt 9.x and 10.x #3922

Closed
ahoarau opened this issue Apr 6, 2024 · 1 comment
Closed

Cannot use ostream support on fmt 9.x and 10.x #3922

ahoarau opened this issue Apr 6, 2024 · 1 comment

Comments

@ahoarau
Copy link

ahoarau commented Apr 6, 2024

Hello !
I'm having compile issues on fmt 9.x and 10.x with the ostream extension.
Same on msvc (latest) and gcc 13.2 : https://godbolt.org/z/8oejx8Yfn
Thanks for the help !

#include <fmt/ostream.h>

struct A{};

std::ostream& operator<<(std::ostream& os, const A& a)
{
    os << "Hello !";
    return os;
}

int main()
{
    fmt::print("{}", A{});
}

7.x => ✅

image

8.x => ✅

image

9.x => ❌

image

10.x => ❌

image

@vitaut
Copy link
Contributor

vitaut commented Apr 6, 2024

Duplicate of #3318.

@vitaut vitaut closed this as completed Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants