Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make convert_hierarchy inline to prevent duplicate symbols
Without inline, this function will have strong symbol type and will result in duplicate symbols linking error if this header gets included in more than one .cpp file. See here https://en.cppreference.com/w/cpp/language/inline >> There may be more than one definition of an inline function or variable (since C++17) in the program as long as each definition appears in a different translation unit and (for non-static inline functions and variables (since C++17)) all definitions are identical. For example, an inline function or an inline variable (since C++17) may be defined in a header file that is included in multiple source files.
- Loading branch information