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

Add support for 'std::variant' in C++17 #2941

Merged
merged 6 commits into from
Jun 26, 2022

Commits on Jun 19, 2022

  1. Add support for 'std::variant' in C++17.

    For C++17, if all the alternatives of a variant are formattable
    the variant is now also formattable. In addition 'std::monostate'
    is now formattable.
    
    The value of a variant is enclosed in '<' and '>', and the monostate
    is formatted as ' '.
    jehelset committed Jun 19, 2022
    Configuration menu
    Copy the full SHA
    093630e View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2022

  1. Adjust to PR feedback.

    Moves implementation into 'std.h', and tests into 'std-test.cc'.
    
    Avoid fold-expression since MSVC was crashing. Hopefully works
    with this.
    
    Add secion for 'fmt/std.h' in API-docs.
    jehelset committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    594ec8e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    60cd835 View commit details
    Browse the repository at this point in the history
  3. Fix include.

    jehelset committed Jun 22, 2022
    Configuration menu
    Copy the full SHA
    643fabf View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2022

  1. Adjust to PR feedback.

    jehelset committed Jun 23, 2022
    Configuration menu
    Copy the full SHA
    0928604 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    62474f5 View commit details
    Browse the repository at this point in the history