mirror of
https://github.com/NixOS/nix
synced 2025-06-27 16:51:15 +02:00
dropEmptyInitThenConcatStringsSep -> concatStringSep: empty separator
When the separator is empty, no difference is observable. Note that concatStringsSep has centralized definitions. This adds the required definitions. Alternatively, `strings-inline.hh` could be included at call sites.
This commit is contained in:
parent
d40fdb5711
commit
97e01107ec
2 changed files with 10 additions and 1 deletions
|
@ -9,4 +9,11 @@ template std::string concatStringsSep(std::string_view, const Strings &);
|
|||
template std::string concatStringsSep(std::string_view, const StringSet &);
|
||||
template std::string concatStringsSep(std::string_view, const std::vector<std::string> &);
|
||||
|
||||
typedef std::string_view strings_2[2];
|
||||
template std::string concatStringsSep(std::string_view, const strings_2 &);
|
||||
typedef std::string_view strings_3[3];
|
||||
template std::string concatStringsSep(std::string_view, const strings_3 &);
|
||||
typedef std::string_view strings_4[4];
|
||||
template std::string concatStringsSep(std::string_view, const strings_4 &);
|
||||
|
||||
} // namespace nix
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue