Skip to content

Commit

Permalink
Added emptyString() overload for std::string
Browse files Browse the repository at this point in the history
  • Loading branch information
4c3y committed Sep 8, 2023
1 parent aa3c021 commit 2eacac0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions include/log++.h
Original file line number Diff line number Diff line change
Expand Up @@ -510,6 +510,10 @@ constexpr inline std::string_view emptyString([[maybe_unused]] const char *f, [[
[[maybe_unused]] constexpr std::string_view emptyString([[maybe_unused]] const char *str) {
return "";
}

[[maybe_unused]] constexpr std::string_view emptyString([[maybe_unused]] const std::string& str) {
return "";
}
#endif
//! Composes a string with the same text that would be printed if format was used on printf(3)
template<typename... Args>
Expand Down

0 comments on commit 2eacac0

Please sign in to comment.