Merge pull request #5 from dextercd/patch-1

Update CppCoreGuidelines.md
This commit is contained in:
Andrew Pardoe 2015-09-18 10:59:48 -07:00
commit 3650a3f016

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: