mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 20:54:41 +03:00
T.84 Correction of Example: Change type of suc and pre to Link_base
This commit is contained in:
@@ -15519,8 +15519,8 @@ Avoid code bloat.
|
||||
It could be a base class:
|
||||
|
||||
struct Link_base { // stable
|
||||
Link* suc;
|
||||
Link* pre;
|
||||
Link_base* suc;
|
||||
Link_base* pre;
|
||||
};
|
||||
|
||||
template<typename T> // templated wrapper to add type safety
|
||||
|
||||
Reference in New Issue
Block a user