This commit is contained in:
parent
8c80740514
commit
054a26475c
4 changed files with 33 additions and 37 deletions
|
|
@ -42,7 +42,7 @@ public:
|
|||
SafeHtml(std::string_view) = delete;
|
||||
|
||||
// Str() returns a reference (not a copy) because Format() feeds these
|
||||
// to std::make_format_args, which in C++23 binds Args&... and therefore
|
||||
// to std::make_format_args, which in C++ binds Args&... and therefore
|
||||
// needs lvalues.
|
||||
const std::string& Str() const noexcept { return v_; }
|
||||
std::string_view View() const noexcept { return v_; }
|
||||
|
|
|
|||
Loading…
Reference in a new issue