mirror of https://gitee.com/bigwinds/arangodb
pass by const reference to avoid copying
This commit is contained in:
parent
8a1c557f07
commit
7b924d8f33
|
@ -52,7 +52,7 @@ std::string buildFilename(char const* path, char const* name);
|
|||
std::string buildFilename(std::string const& path, std::string const& name);
|
||||
|
||||
template <typename... Args>
|
||||
inline std::string buildFilename(std::string path, std::string name, Args... args) {
|
||||
inline std::string buildFilename(std::string const& path, std::string const& name, Args... args) {
|
||||
return buildFilename(buildFilename(path, name), args...);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue