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:
parent
9c74df5bb4
commit
1e2dd669bc
5 changed files with 16 additions and 16 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue