We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb0744e commit ad93f8dCopy full SHA for ad93f8d
CppCoreGuidelines.md
@@ -1,6 +1,6 @@
1
# <a name="main"></a>C++ Core Guidelines
2
3
-May 8, 2025
+Jul 8, 2025
4
5
Editors:
6
@@ -18753,7 +18753,7 @@ It could be a base class:
18753
class List : List_base {
18754
public:
18755
void put_front(const T& e) { add_front(new Link<T>{e}); } // implicit cast to Link_base
18756
- T& front() { static_cast<Link<T>*>(first).val; } // explicit cast back to Link<T>
+ T& front() { return static_cast<Link<T>*>(first)->val; } // explicit cast back to Link<T>
18757
// ...
18758
};
18759
0 commit comments