aui icon indicating copy to clipboard operation
aui copied to clipboard

Universal formattable concept

Open Alex2772 opened this issue 1 year ago • 0 comments

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 avatar Dec 25 '24 11:12 Alex2772