-
Notifications
You must be signed in to change notification settings - Fork 4
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
obj.erase(it) fails on map #19
Comments
I forgot to fill more details. |
Good catch. The resolution gives me some headache though. There are two solutions we can use:
The first solution enables the user to loop over all elements and erase some of them. That is:
The second solution has the advantage of being more general, so it can be used for other functions, like I am leaning towards the second solution because:
|
Why can't the example compile with solution |
Because There is no conversion from |
Regarding your comment about parsing the entire input to a |
Okay. I've read N2350 (except for the proposed wording chapter). I think if we apply the same solution here, the proper solution would be to add I wouldn't mind to have a overloaded
Surely I'll enjoy that. |
I have added a Regarding the |
Okay. Let's leave the issue open for some time in case others want to pop in and add their comments.
This will suit me for now. Probably I'll send a PR in the following weeks with one |
Tested on commit cea147e, but looking at the source code from latest develop, I think it should be failing too. I can write an isolated case to test it on
develop
later.Compiler is clang. Error is:
Also, finally I am coding the part where performance is not the critical and I can do whole parses and get the convenience of
dynamic::variable
on my code 🎉🎉🎉.The text was updated successfully, but these errors were encountered: