Skip to content

Commit e9d15f0

Browse files
committed
Final Chapter 20 examples
1 parent 9f7590d commit e9d15f0

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

examples/ch20/fig20_03.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ int main() {
4545
void Example::printValues() {
4646
std::cout << "\nIn printValues:\n";
4747
std::cout << fmt::format(
48-
"integer1 = {}\npi = {}\ne = {}\n", pi, e, integer1);
48+
"integer1 = {}\npi = {}\ne = {}\n", integer1, pi, e);
4949
std::cout << fmt::format(
5050
"doubleInUnnamed = {}\n(global) integer1 = {}\nfiscal3 = {}\n",
5151
doubleInUnnamed, ::integer1, Inner::fiscal3);

examples/ch20/fig20_04.cpp

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
// fig20_04.cpp
22
// Demonstrating operator keywords.
3-
//#include <ciso646> // enables operator keywords in Microsoft Visual C++
43
#include <fmt/format.h>
54
#include <iostream>
65

examples/ch20/fig20_08.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// fig20_09.cpp
1+
// fig20_08.cpp
22
// Demonstrate shared_ptrs.
33
#include <algorithm>
44
#include <fmt/format.h>

0 commit comments

Comments
 (0)