Skip to content
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

Use in VS2017 15.5.5 #946

Closed
daodol opened this issue Jan 31, 2018 · 7 comments
Closed

Use in VS2017 15.5.5 #946

daodol opened this issue Jan 31, 2018 · 7 comments
Labels

Comments

@daodol
Copy link

daodol commented Jan 31, 2018

error C2338: each element in the iterator range must have the size of 1 byte,
The compilation triggered an assertion that I don't know what to do and what should I do?
thank you

@nlohmann nlohmann added the platform: visual studio related to MSVC label Jan 31, 2018
@nlohmann
Copy link
Owner

Can you provide the code that triggers that error?

@daodol
Copy link
Author

daodol commented Jan 31, 2018

a

@nlohmann
Copy link
Owner

No I meant your code.

@daodol
Copy link
Author

daodol commented Jan 31, 2018

a

@daodol
Copy link
Author

daodol commented Jan 31, 2018

These are examples of GitHub, and I just copy it。
thank you

@nlohmann
Copy link
Owner

You try to parse an int vector. That does not work - just assign: j = v;.

You can use a vector of chars to parse from. This is the error message: if you parse from a vector, its elements must be 1 byte.

@daodol
Copy link
Author

daodol commented Jan 31, 2018

It can work,When i compile it, you check it. Excellent,thank you

@daodol daodol closed this as completed Jan 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants