mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 10:47:35 +00:00
Everywhere: Remove unnecessary AK and Detail namespace scoping
This commit is contained in:
parent
ae2abcebbb
commit
b8f1e1bed2
10 changed files with 13 additions and 13 deletions
|
@ -36,13 +36,13 @@ namespace std { // NOLINT(cert-dcl58-cpp) Names in std to aid tools
|
|||
// NOTE: These are in the "std" namespace since some compilers and static analyzers rely on it.
|
||||
|
||||
template<typename T>
|
||||
constexpr T&& forward(AK::Detail::RemoveReference<T>& param)
|
||||
constexpr T&& forward(RemoveReference<T>& param)
|
||||
{
|
||||
return static_cast<T&&>(param);
|
||||
}
|
||||
|
||||
template<typename T>
|
||||
constexpr T&& forward(AK::Detail::RemoveReference<T>&& param) noexcept
|
||||
constexpr T&& forward(RemoveReference<T>&& param) noexcept
|
||||
{
|
||||
static_assert(!IsLvalueReference<T>, "Can't forward an rvalue as an lvalue.");
|
||||
return static_cast<T&&>(param);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue