1
      2
      3
      4
      5
      6
      7
      8
      9
     10
     11
     12
class Vector2D {
   public:
      Vector2D() : x(0), y(0) {
      }
      Vector2D(const Vector2D& other) = delete;
      double x, y;
};

int main() {
   Vector2D a;
   Vector2D b = a;
}