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

Universal formattable concept #405

Open
Alex2772 opened this issue Dec 25, 2024 · 0 comments
Open

Universal formattable concept #405

Alex2772 opened this issue Dec 25, 2024 · 0 comments
Labels
design Architecture proposals feature request New feature request

Comments

@Alex2772
Copy link
Collaborator

Alex2772 commented Dec 25, 2024

Describe the need of your project

There's a zoo of formattable concepts in AUI:

  • operator<< (default c++)
  • fmt::formattable (from {fmt})
  • PrintTo (from gtest)

They are not interchangeable. I want implement formattable/printable concept once per type instead implementing it 3x times per type.

Proposed solution

Take fmt::formattable as base formatting concept. As AUI uses both GTest and {fmt}, implement GTest's PrintTo function and use fmt::formattable there.

Alternatives you've considered

No response

Additional context

No response

@Alex2772 Alex2772 added feature request New feature request design Architecture proposals labels Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design Architecture proposals feature request New feature request
Projects
None yet
Development

No branches or pull requests

1 participant