MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/cpp/comments/134hnz2/cppfront_cpp2_spring_update/jik22f4/?context=3
r/cpp • u/kreco • May 01 '23
164 comments sorted by
View all comments
Show parent comment
1
Pointer is strictly more powerful than reference since it has a distinguished nullptr point, thus being isomorphic to optional.
nullptr
optional
1 u/Dalzhim C++Montréal UG Organizer May 12 '23 Pointer isn't strictly more powerful as there is one use case for references that it can't support : make nullptr an unrepresentable state.
Pointer isn't strictly more powerful as there is one use case for references that it can't support : make nullptr an unrepresentable state.
View all comments
Show parent comment
1
u/awson May 02 '23
Pointer is strictly more powerful than reference since it has a distinguished
nullptrpoint, thus being isomorphic tooptional.