type_safe icon indicating copy to clipboard operation
type_safe copied to clipboard

for_each flag_set

Open Neargye opened this issue 5 years ago • 3 comments

Draft to fix https://github.com/foonathan/type_safe/issues/100

Neargye avatar Jun 23 '20 11:06 Neargye

for_each was made by a method, not a free function. I'm not sure what's best.

It is possible to make functions begin()/end(), but to do this will have to create a class reference and iterator like for vector<bool>.

Neargye avatar Jun 27 '20 15:06 Neargye

Sorry for the delay, I'm busy with university stuff at the moment.

I think I prefer a begin()/end() interface with a proxy over the single function with callback. Would you be willing to try something like that out as well?

foonathan avatar Jul 17 '20 12:07 foonathan

Thank you for your feedback.

Yes, I will try to make a solution with begin()/end(). I'll update this PR when I have something to show.

Neargye avatar Jul 17 '20 14:07 Neargye