CppCoreGuidelines
CppCoreGuidelines copied to clipboard
R.34-R.36 need clarification
I think we need an explanation of why we might want to define such "might" functions.
It seems you meant R.34-R.36.
I did. Thanks.
What should an example for R.36 (passing const shared_ptr<T>&) show? Should it conditioanally take ownership? Would passing by const ref violate F.15 (prefer simple passing)?