Skip to content

warning: path::subpath(const_iterator, const_iterator) can be made static #309

Description

@N-Dekker

Environment

toml++ version and/or commit hash:
HEAD of git master, commit hash 1e8829b

Compiler:

Clang Tidy LLVM 21.1.6

C++ standard mode:
C++17

Target arch:
x64

Library configuration overrides:

Relevant compilation flags:

Describe the bug

warning: method 'subpath' can be made static [readability-convert-member-functions-to-static]
 3560 |         path path::subpath(std::vector<path_component>::const_iterator start,
      |                    ^
 3561 |                                            std::vector<path_component>::const_iterator end) const
      |                                                                                             ~~~~~

As far as I can see, this warning makes sense, and it would be nice to fix it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions