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

cast return from NxsStringVector::size() to unsigned #21

Closed
wants to merge 2 commits into from

Conversation

mbrazeau
Copy link
Contributor

Proposed fix for: #5 (comment)

I keep running into the same problem ("ambiguous overload for 'operator<<'") trying to build on Windows with latest Visual Studio. The suggested fix in the issues page was explicit cast to long unsigned int, but I noticed the returns from NxsStringVector::size() are always cast to unsigned elsewhere in the same file (line 304 is nearly identical and has already been cast). I suppose this was just an accidental omission that never got caught as other compilers don't seem to be bothered by this overload.

@mbrazeau
Copy link
Contributor Author

I made a stupid and put the cast on the wrong side of the operator! (duh!) Will make new PR. Apologies.

@mbrazeau mbrazeau closed this Aug 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant