Open
Description
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
Labels
No labels