Update CppCoreGuidelines.md

This commit is contained in:
dextercd 2015-09-18 17:50:40 +02:00
parent 2ce60168eb
commit 803a7f6aef

View File

@ -1668,7 +1668,7 @@ These can now be combined where needed:
void read_and_print() void read_and_print()
{ {
auto x = read(cin); auto x = read(cin);
print(cout& os, x); print(cout, x);
} }
If there was a need, we could further templatize `read()` and `print()` on the data type, the I/O mechanism, etc. Example: If there was a need, we could further templatize `read()` and `print()` on the data type, the I/O mechanism, etc. Example: