mirror of
https://github.com/isocpp/CppCoreGuidelines.git
synced 2025-12-17 12:44:42 +03:00
Merge pull request #99 from fabiogaluppo/patch-2
Update CppCoreGuidelines.md
This commit is contained in:
@@ -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(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"
|
void fct(int& x); // OK, but means something else; use only for an "out parameter"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user