mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2024-03-22 13:30:58 +08:00
Merge pull request #99 from fabiogaluppo/patch-2
Update CppCoreGuidelines.md
This commit is contained in:
commit
8b8e0a8e34
|
@ -2134,7 +2134,7 @@ For small objects (up to two or three words) is is also faster than alternatives
|
|||
|
||||
void fct(int x); // OK: Unbeatable
|
||||
|
||||
void fct(const int& x); // bad: overhead on access in fct2()
|
||||
void fct2(const int& x); // bad: overhead on access in fct2()
|
||||
|
||||
void fct(int& x); // OK, but means something else; use only for an "out parameter"
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user