Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup! fixup! squash! doc: formalize non-const reference usage in C++…
… style guide
  • Loading branch information
addaleax committed Oct 2, 2018
commit acba30df49557b5dc101b49b1d9f65703508d7ca
4 changes: 2 additions & 2 deletions CPP_STYLE_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -230,8 +230,8 @@ class ExampleClass {

private:
std::string foo_string_;
// Pointer instead of reference. If this objects 'owns' the other object,
// this should be be a `std::unique_ptr<OtherClass>`; a
// Pointer instead of reference. If this object 'owns' the other object,
// this should be a `std::unique_ptr<OtherClass>`; a
// `std::shared_ptr<OtherClass>` can also be a better choice.
OtherClass* pointer_to_other_;
};
Expand Down