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
The following code doesn't compile in gcc-10:
#include <string_view> #include <scn/scn.h> int main() { int i = 0; scn::scan_default(std::string_view("42"), i); }
Errors mention an overload resolution failure due to priority_tag. Interestingly, passing a string_view as an lvalue (even const) works fine.
priority_tag
string_view
const
errors.txt
The text was updated successfully, but these errors were encountered:
Gah, the overload resolution rules are a source of pain sometimes. Fixed in latest master, thank you for reporting!
Sorry, something went wrong.
No branches or pull requests
The following code doesn't compile in gcc-10:
Errors mention an overload resolution failure due to
priority_tag
. Interestingly, passing astring_view
as an lvalue (evenconst
) works fine.errors.txt
The text was updated successfully, but these errors were encountered: