mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Merge pull request #780 from zingsheim/T.84.Link_base
T.84 Correction of Example: Change type of suc and pre to Link_base
This commit is contained in:
commit
49abfa6509
|
@ -15818,8 +15818,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
|
||||
|
|
Loading…
Reference in New Issue
Block a user