1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-12-11 19:41:04 +01: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

@ -17,14 +17,14 @@ namespace nix {
*
* @param s The logical string
*/
std::ostream & printLiteral(std::ostream & o, std::string_view s);
inline std::ostream & printLiteral(std::ostream & o, const char * s) {
return printLiteral(o, std::string_view(s));
std::ostream & printLiteralString(std::ostream & o, std::string_view s);
inline std::ostream & printLiteralString(std::ostream & o, const char * s) {
return printLiteralString(o, std::string_view(s));
}
inline std::ostream & printLiteral(std::ostream & o, const std::string & s) {
return printLiteral(o, std::string_view(s));
inline std::ostream & printLiteralString(std::ostream & o, const std::string & s) {
return printLiteralString(o, std::string_view(s));
}
/** Print `true` or `false`. */
std::ostream & printLiteral(std::ostream & o, bool b);
std::ostream & printLiteralBool(std::ostream & o, bool b);
}