Skip to content
forked from fmtlib/fmt
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

Fix FMT_FORMAT_AS const specifier position (#1554) #88

Merged
merged 1 commit into from
Feb 23, 2020

Conversation

sthagen
Copy link
Owner

@sthagen sthagen commented Feb 23, 2020

The current FMT_FORMAT_AS macro will make formatter<Char *>::format
have the first argument type const Char *& which is incorrect an
should be Char *const &. This pull request fixes that by changing the
first argument type in the macro definition body from const Type & to
Type const &.

I agree that my contributions are licensed under the {fmt} license, and agree to future changes to the licensing.

The current `FMT_FORMAT_AS` macro will make `formatter<Char *>::format`
have the first argument type `const Char *&` which is incorrect an
should be `Char *const &`.  This pull request fixes that by changing the
first argument type in the macro definition body from `const Type &` to
`Type const &`.
@sthagen sthagen merged commit 2772747 into sthagen:master Feb 23, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants