mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
doc: Explain how to pass in non-fundamental types into functions
This commit is contained in:
parent
10852210bc
commit
faede747b3
1 changed files with 8 additions and 0 deletions
|
|
@ -478,6 +478,14 @@ Wallet
|
||||||
General C++
|
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
|
- Assertions should not have side-effects
|
||||||
|
|
||||||
- *Rationale*: Even though the source code is set to refuse to compile
|
- *Rationale*: Even though the source code is set to refuse to compile
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue