r/cpp • u/_VZ_ wx | soci | swig • Jun 17 '15
Standardizing Variant: Difficult Decisions
https://www.justsoftwaresolutions.co.uk/cplusplus/standardizing-variant.html
31
Upvotes
r/cpp • u/_VZ_ wx | soci | swig • Jun 17 '15
View all comments
Show parent comment
1
u/whichton Jun 18 '15
Why can two different lists not share the same sentinel node? That is:
will have the same sentinel node, which will be a static member of list<int>. Does that not work ?
Also, are sentinel nodes mandated by the standard? You can have an end iterator without using sentinel nodes.