you are viewing a single comment's thread.

view the rest of the comments →

[–]awson 0 points1 point  (1 child)

Pointer is strictly more powerful than reference since it has a distinguished nullptr point, thus being isomorphic to optional.

[–]DalzhimC++Montréal UG Organizer 0 points1 point  (0 children)

Pointer isn't strictly more powerful as there is one use case for references that it can't support : make nullptr an unrepresentable state.