From cb0744e931fd9f441649d9a31b6acdbaa789109d Mon Sep 17 00:00:00 2001 From: Sergey Zubkov Date: Thu, 8 May 2025 15:44:28 -0400 Subject: [PATCH] [C.183] make example compile closes #2271 --- CppCoreGuidelines.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CppCoreGuidelines.md b/CppCoreGuidelines.md index db3291c..993bb26 100644 --- a/CppCoreGuidelines.md +++ b/CppCoreGuidelines.md @@ -9020,7 +9020,7 @@ If you wanted to see the bytes of an `int`, use a (named) cast: void if_you_must_pun(int& x) { auto p = reinterpret_cast(&x); - cout << p[0] << '\n'; // OK; better + cout << to_integer(p[0]) << '\n'; // OK; better // ... }