mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 13:47:45 +00:00
AK: Fix declaration of {String,StringView}::is_one_of
The declarations need to consume the variadic parameters as "Ts&&..." for the parameters to be forwarding references.
This commit is contained in:
parent
1e10d6d7ce
commit
011514a384
2 changed files with 2 additions and 2 deletions
|
@ -216,7 +216,7 @@ public:
|
|||
[[nodiscard]] bool is_whitespace() const { return StringUtils::is_whitespace(*this); }
|
||||
|
||||
template<typename... Ts>
|
||||
[[nodiscard]] ALWAYS_INLINE constexpr bool is_one_of(Ts... strings) const
|
||||
[[nodiscard]] ALWAYS_INLINE constexpr bool is_one_of(Ts&&... strings) const
|
||||
{
|
||||
return (... || this->operator==(forward<Ts>(strings)));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue