mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
Fix variable name in example (#2116)
This commit is contained in:
@@ -8207,8 +8207,8 @@ Consider:
|
||||
cout << pb2->id(); // "D"
|
||||
|
||||
|
||||
if (pb1->id() == "D") { // looks innocent
|
||||
D* pd = static_cast<D*>(pb1);
|
||||
if (pb2->id() == "D") { // looks innocent
|
||||
D* pd = static_cast<D*>(pb2);
|
||||
// ...
|
||||
}
|
||||
// ...
|
||||
|
||||
Reference in New Issue
Block a user