/* CSE 333 Su12 lecture 13 demo: scopedarray.cc */
/* Gribble/Perkins */

// boost scoped_array pointer.  Like scoped_ptr, but
// owns an array, not a single item

#include <boost/scoped_array.hpp>
#include <stdlib.h>

int main(int argc, char **argv) {
  boost::scoped_array<int> x(new int[10]);
  x[0] = 1;
  x[1] = 2;

  return EXIT_SUCCESS;
}