1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-03 10:21:47 +02:00

printLiteral: Do not overload

This commit is contained in:
Robert Hensing 2023-04-16 12:56:31 +02:00
parent 9c74df5bb4
commit 1e2dd669bc
5 changed files with 16 additions and 16 deletions

View file

@ -3,7 +3,7 @@
namespace nix {
std::ostream &
printLiteral(std::ostream & str, const std::string_view string)
printLiteralString(std::ostream & str, const std::string_view string)
{
str << "\"";
for (auto i = string.begin(); i != string.end(); ++i) {
@ -19,7 +19,7 @@ printLiteral(std::ostream & str, const std::string_view string)
}
std::ostream &
printLiteral(std::ostream & str, bool boolean)
printLiteralBool(std::ostream & str, bool boolean)
{
str << (boolean ? "true" : "false");
return str;