Update smart_pointers_with_polymorphism.cpp

Fix Color::operator == in smart_pointers_with_polymorphism example
This commit is contained in:
Yaroslav
2018-08-24 10:09:17 +03:00
committed by GitHub
parent 54f69a5eea
commit 6ebdb9915b

View File

@@ -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);
}
};