Skip to content

Commit

Permalink
Revert "Use std::quoted() in zen::quote()"
Browse files Browse the repository at this point in the history
This reverts commit 9565052.
  • Loading branch information
heinsaar committed Jan 1, 2024
1 parent 9565052 commit e158e8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zen/datas/alpha.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ namespace zen {
// Quotes a string. This helps avoid cumbersome quote gymnastics in code.
// Example: quote(filename) + " does not exist";
// Result: "/path/to/file" does not exist
inline std::string quote(const std::string_view s) { return std::quoted(s); }
inline std::string quote(const std::string_view s) { return '\"' + std::string(s) + '\"'; }

inline auto timestamp() {
std::time_t result = std::time(nullptr);
Expand Down

0 comments on commit e158e8f

Please sign in to comment.