fix: remove logging::bracket "*_view" overloads (#2919)
This commit is contained in:
parent
f4dda21248
commit
369158375f
2 changed files with 2 additions and 28 deletions
|
|
@ -172,22 +172,12 @@ namespace logging {
|
||||||
|
|
||||||
std::string
|
std::string
|
||||||
bracket(const std::string &input) {
|
bracket(const std::string &input) {
|
||||||
return bracket(std::string_view(input));
|
return "["s + input + "]"s;
|
||||||
}
|
|
||||||
|
|
||||||
std::string
|
|
||||||
bracket(const std::string_view &input) {
|
|
||||||
return "["s + std::string(input) + "]"s;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
std::wstring
|
std::wstring
|
||||||
bracket(const std::wstring &input) {
|
bracket(const std::wstring &input) {
|
||||||
return bracket(std::wstring_view(input));
|
return L"["s + input + L"]"s;
|
||||||
}
|
|
||||||
|
|
||||||
std::wstring
|
|
||||||
bracket(const std::wstring_view &input) {
|
|
||||||
return L"["s + std::wstring(input) + L"]"s;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
} // namespace logging
|
} // namespace logging
|
||||||
|
|
|
||||||
|
|
@ -212,14 +212,6 @@ namespace logging {
|
||||||
std::string
|
std::string
|
||||||
bracket(const std::string &input);
|
bracket(const std::string &input);
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enclose string in square brackets.
|
|
||||||
* @param input Input string.
|
|
||||||
* @return Enclosed string.
|
|
||||||
*/
|
|
||||||
std::string
|
|
||||||
bracket(const std::string_view &input);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief Enclose string in square brackets.
|
* @brief Enclose string in square brackets.
|
||||||
* @param input Input string.
|
* @param input Input string.
|
||||||
|
|
@ -228,12 +220,4 @@ namespace logging {
|
||||||
std::wstring
|
std::wstring
|
||||||
bracket(const std::wstring &input);
|
bracket(const std::wstring &input);
|
||||||
|
|
||||||
/**
|
|
||||||
* @brief Enclose string in square brackets.
|
|
||||||
* @param input Input string.
|
|
||||||
* @return Enclosed string.
|
|
||||||
*/
|
|
||||||
std::wstring
|
|
||||||
bracket(const std::wstring_view &input);
|
|
||||||
|
|
||||||
} // namespace logging
|
} // namespace logging
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue