From 6ebdb9915b30de00c95db3e31ec5336054c71120 Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Fri, 24 Aug 2018 10:09:17 +0300 Subject: [PATCH] Update smart_pointers_with_polymorphism.cpp Fix Color::operator == in smart_pointers_with_polymorphism example --- examples/smart_pointers_with_polymorphism.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/smart_pointers_with_polymorphism.cpp b/examples/smart_pointers_with_polymorphism.cpp index 2de503c..3b2e8a4 100644 --- a/examples/smart_pointers_with_polymorphism.cpp +++ b/examples/smart_pointers_with_polymorphism.cpp @@ -27,7 +27,7 @@ struct Color { float r{}, g{}, b{}; bool operator == (const Color& o) const { return std::tie(r, g, b) == - std::tie(o.r, o.g, b); + std::tie(o.r, o.g, o.b); } };