From f3c4c9555f5db6bc666d7562ca3f3e408b602f71 Mon Sep 17 00:00:00 2001 From: Ian Dinwoodie Date: Sun, 19 May 2019 18:13:45 -0400 Subject: [PATCH] Be explicit with the shared pointer type. --- README.md | 2 +- examples/behavioral/chain_of_responsibility.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4a680c5..53f7e46 100644 --- a/README.md +++ b/README.md @@ -1825,7 +1825,7 @@ Bitcoin). // We are going to create the chain: bank->paypal->bitcoin. // First, create the accounts. -std::shared_ptr bank = std::make_shared(100); +std::shared_ptr bank = std::make_shared(100); std::shared_ptr paypal = std::make_shared(200); std::shared_ptr bitcoin = std::make_shared(300); diff --git a/examples/behavioral/chain_of_responsibility.cpp b/examples/behavioral/chain_of_responsibility.cpp index a0582c7..cdd9cdb 100644 --- a/examples/behavioral/chain_of_responsibility.cpp +++ b/examples/behavioral/chain_of_responsibility.cpp @@ -76,7 +76,7 @@ int main() // We are going to create the chain: bank->paypal->bitcoin. // First, create the accounts. - std::shared_ptr bank = std::make_shared(100); + std::shared_ptr bank = std::make_shared(100); std::shared_ptr paypal = std::make_shared(200); std::shared_ptr bitcoin = std::make_shared(300);