Skip to content

proposal: Recommendation on Class Member Function Declaration #777

Open
@lovelxc

Description

@lovelxc

While reviewing the project code, I noticed that there are cases where class member functions are declared with static inline. However, in modern C++(since C++17), the semantics of inline has changed. For class member functions, simply using static is sufficient to achieve a similar effect and is more concise and in line with modern C++ standards.

For more detailed explanations, please refer to: cppref. It is recommended that developers consider adjusting such declarations in the code to optimize the code structure and adhere to more appropriate programming practices.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions