-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Misleading documentation in std::option module #64844
Copy link
Copy link
Closed
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-bugCategory: This is a bug.Category: This is a bug.
Metadata
Metadata
Assignees
Labels
A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsArea: Documentation for any part of the project, including the compiler, standard library, and toolsC-bugCategory: This is a bug.Category: This is a bug.
Type
Fields
Give feedbackNo fields configured for issues without a type.
The current
std::optionmodule states, thatWhich is obviously wrong. There are no null references (
&T), but there may be raw null pointers (*const T).Maybe the docs should have used the terminology of smart pointers, which would be less misleading and be correct 😄