doc: Explain how to pass in non-fundamental types into functions

This commit is contained in:
MarcoFalke 2019-04-29 13:23:33 -04:00
parent 10852210bc
commit faede747b3
No known key found for this signature in database
GPG Key ID: CE2B75697E69A548

View File

@ -478,6 +478,14 @@ Wallet
General C++
-------------
For general C++ guidelines, you may refer to the [C++ Core
Guidelines](https://isocpp.github.io/CppCoreGuidelines/).
Common misconceptions are clarified in those sections:
- Passing (non-)fundamental types in the [C++ Core
Guideline](https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rf-conventional)
- Assertions should not have side-effects
- *Rationale*: Even though the source code is set to refuse to compile