From 6a6321fcbf8facfd19546c0319b6d6420ea41cfa Mon Sep 17 00:00:00 2001 From: Aleksander Date: Mon, 15 Apr 2019 20:05:36 +0200 Subject: [PATCH] ES.49: added lvalue in std::forward description (#1404) --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 3b2e0c3..6605bf2 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -11664,7 +11664,7 @@ The named casts are: * `reinterpret_cast` * `dynamic_cast` * `std::move` // `move(x)` is an rvalue reference to `x` -* `std::forward` // `forward(x)` is an rvalue reference to `x` +* `std::forward` // `forward(x)` is an rvalue or an lvalue reference to `x` depending on `T` * `gsl::narrow_cast` // `narrow_cast(x)` is `static_cast(x)` * `gsl::narrow` // `narrow(x)` is `static_cast(x)` if `static_cast(x) == x` or it throws `narrowing_error`