From 9cf0fcf19dfc8aa4ca8085c83ad572c7ca32db3f Mon Sep 17 00:00:00 2001 From: Tom Isaacson Date: Wed, 4 Oct 2017 05:23:48 +1300 Subject: [PATCH] #1045 Fix reference to narrow_cast (#1046) --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index 23b3e59..faf7d28 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -11632,7 +11632,7 @@ A key example is basic narrowing: ##### Note -The guideline support library offers a `narrow` operation for specifying that narrowing is acceptable and a `narrow` ("narrow if") that throws an exception if a narrowing would throw away information: +The guideline support library offers a `narrow_cast` operation for specifying that narrowing is acceptable and a `narrow` ("narrow if") that throws an exception if a narrowing would throw away information: i = narrow_cast(d); // OK (you asked for it): narrowing: i becomes 7 i = narrow(d); // OK: throws narrowing_error