mirror of
https://github.com/fraillt/bitsery.git
synced 2026-08-12 00:09:33 +00:00
Update smart_pointers_with_polymorphism.cpp
Fix Color::operator == in smart_pointers_with_polymorphism example
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user