class Vector2D { public: Vector2D() : x(0), y(0) { } Vector2D(const Vector2D& other) = delete; double x, y; }; int main() { Vector2D a; Vector2D b = a; }