We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Using libfmt on linux in conjunction with X11 headers I encountered a name collision with the macro index(s, c) defined in Xos.h.
index(s, c)
Xos.h
If fmt/format.h is included AFTER Xos.h, this code in format.h will fail to compile:
fmt/format.h
format.h
arg_id_kind kind; union value { FMT_CONSTEXPR value() : index(0u) {} FMT_CONSTEXPR value(int id) : index(id) {} FMT_CONSTEXPR value(basic_string_view<Char> n) : name(n) {} int index; basic_string_view<Char> name; } val;
with error: macro "index" requires 2 arguments, but only 1 given FMT_CONSTEXPR value() : index(0u) {}
error: macro "index" requires 2 arguments, but only 1 given FMT_CONSTEXPR value() : index(0u) {}
since index(...) expects two arguments.
index(...)
The text was updated successfully, but these errors were encountered:
Workaround X11 madness (#1388)
4733b8b
213e096
50912fb
Worked around in 213e096.
Sorry, something went wrong.
No branches or pull requests
Using libfmt on linux in conjunction with X11 headers I encountered a name collision with the macro
index(s, c)
defined inXos.h
.If
fmt/format.h
is included AFTERXos.h
, this code informat.h
will fail to compile:with
error: macro "index" requires 2 arguments, but only 1 given FMT_CONSTEXPR value() : index(0u) {}
since
index(...)
expects two arguments.The text was updated successfully, but these errors were encountered: