Skip to content
Commit 383bfa8d authored by Murray Cumming's avatar Murray Cumming
Browse files

Don't take a shared_ptr<> when the method does not share ownership.

As suggested by recent talks by:

Bjarne Stroustrup: 2015: Writing Good C++14:
video: https://www.youtube.com/watch?v=1OEu9C51K2A
slide: https://github.com/isocpp/CppCoreGuidelines/blob/master/talks/Stroustrup%20-%20CppCon%202015%20keynote.pdf

C++ Core Guidelines:
"F.7: For general use, take T* or T& arguments rather than smart pointers":
https://github.com/isocpp/CppCoreGuidelines/blob/master/CppCoreGuidelines.md#f7-for-general-use-take-t-or-t-arguments-rather-than-smart-pointers
parent 44e021ab
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment