You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In package.h the package struct contains the line GSList *requires. Since C++20 "requires" is a reserved keyword, so clang++ is complaining about it and terminates compilation of my code. I am using clang version 8.0.0 with the --std=c++2a flag. Using g++ does not lead to errors (version 9.1.0).
Since this is code that is accessible to clients of createrepo_c, changing the variable's name is probably not much of an option because of the amount of code that might break. Any tips how I can solve this?
Edit: As a quick fix I switched to using C++17
The text was updated successfully, but these errors were encountered:
In package.h the package struct contains the line
GSList *requires
. Since C++20 "requires" is a reserved keyword, so clang++ is complaining about it and terminates compilation of my code. I am using clang version 8.0.0 with the--std=c++2a
flag. Using g++ does not lead to errors (version 9.1.0).Since this is code that is accessible to clients of createrepo_c, changing the variable's name is probably not much of an option because of the amount of code that might break. Any tips how I can solve this?
Edit: As a quick fix I switched to using C++17
The text was updated successfully, but these errors were encountered: