-
Notifications
You must be signed in to change notification settings - Fork 7
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
Thoughts on HCCString.h #1
Comments
Yes, for now, it's by design. This constructor wasn't explicit to begin with, but ended up in an implicit conversion, causing a bug. Best regards |
Thank you for your answer. I've skimmed through the class code (HCCString) and I've noticed some subtleties
This should crash. Best Regards |
Thanks for locating this embarrassing bug, I've reimplemented Insert and added a few unit tests. It was, unfortunately, not covered by the tests. If you find anything else I would certainly like to know :-) Best regards |
Glad I could help. Best Regards |
Hi,
The
explicit
keyword onBasicString
constructors on line 956doesn't allow code like this (unless being pedantic):
Constructor at 961 suffers the same problem (imagine
Bar( { FOO, _countof( FOO ) } )
)Compiled with VS2022 community and C++ 20.
Is that by design?
Thanks
Edited
The text was updated successfully, but these errors were encountered: