// CSE 333 Su12 Lecture 11 demo: sanepoint.cc
// Gribble/Perkins

// Main program demonstrating what happens if we try to use
// a class whose assignment and copy constructor operations
// have been disabled.  (Note that this works fine with default
// compiler-generated constructors and assignment if these
// operations are not mentioned at all in the class declaration.

#include "Point.h"

using namespace std;

int main(int argc, char **argv){
  Point x(1, 2);
  Point y(3, 4);

  x.CopyFrom(y);

  Point z(x);  // compiler error, copy constructor is disabled.
  x = y;       // compiler error, assignment operator is disabled.
  return 0;
}