From f0e20b8d375b7255d03514b5c5aa3718e2f17bb0 Mon Sep 17 00:00:00 2001 From: FeignClaims Date: Thu, 1 Feb 2024 22:19:09 +0800 Subject: [PATCH] =?UTF-8?q?[faq]=20=E5=88=A0=E9=99=A4=E6=84=9F=E6=80=A7?= =?UTF-8?q?=E8=A7=A3=E9=87=8A=E8=AD=A6=E5=91=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/faq/basic_concepts/cross/reference-value_category.irst | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/docs/faq/basic_concepts/cross/reference-value_category.irst b/docs/faq/basic_concepts/cross/reference-value_category.irst index cdd0384d..ed111092 100644 --- a/docs/faq/basic_concepts/cross/reference-value_category.irst +++ b/docs/faq/basic_concepts/cross/reference-value_category.irst @@ -1,7 +1,3 @@ -.. warning:: - - 这部分内容很难在新手期给出符合标准的简洁解释, 以下为可以借鉴的感性理解: - :cpp:`T&` 只能引用左值即 "已经存在的对象", 因此不进行会产生临时对象的隐式类型转换. .. code-block:: cpp @@ -25,4 +21,4 @@ :linenos: double value = 0; - int const& reference = value; // 正确: T const& 能够引用临时对象 \ No newline at end of file + int const& reference = value; // 正确: T const& 能够引用临时对象