https://gcc.gnu.org/bugzilla/show_bug.cgi?id=109442

--- Comment #39 from Jonathan Wakely <redi at gcc dot gnu.org> ---
(In reply to Antony Polukhin from comment #37)
> Unfortunately the examples are not artificial. People do write business
> logic code as `vector_variable == std::vector<std::string>{"*"}`. That
> particular example is taken from our codebase and I easily find 4 exact
> matches of `!= std::vector<std::string>{"*"}` in production code.

This seems like somebody should write a utility function that expresses the
business logic ("not wildcard" or whatever it means) and then make sure that's
implemented efficiently, and replace all the inefficient code.

Reply via email to