https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103917
Bug ID: 103917 Summary: libstdc++-v3/src/c++17/fs_path.cc:74: struct passed by value ? Product: gcc Version: 12.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libstdc++ Assignee: unassigned at gcc dot gnu.org Reporter: dcb314 at hotmail dot com Target Milestone: --- cppcheck says: libstdc++-v3/src/c++17/fs_path.cc:74:28: performance: Function parameter 's' should be passed by const reference. [passedByValue] Source code is _Parser(string_view_type s, size_t o = 0) : input(s), origin(o) { }