-
Notifications
You must be signed in to change notification settings - Fork 47
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
scn::scan/prompt from stdin with literal text does not work #29
Comments
It seems to be related specifically to the file putback, it works when you scan from e.g. a string_view. |
In scnlib/include/scn/detail/range.h Lines 142 to 149 in cf9497e
the begin iterator of the range is not incremented for the caching cfile iterator. Also, in scnlib/include/scn/detail/range.h Lines 193 to 196 in cf9497e
the iterator is decremented |
This seems to be resolved on master. |
It is, sorry for not responding and fixing this earlier. |
When trying to scan a format string with a literal at the start, a debug assertions fires:
Code I used, adapted from the examples (using scnlib 0.3):
The text was updated successfully, but these errors were encountered: