/* simple example for using class array<> * * (C) Copyright Nicolai M. Josuttis 2001. * Permission to copy, use, modify, sell and distribute this software * is granted provided this copyright notice appears in all copies. * This software is provided "as is" without express or implied * warranty, and with no claim as to its suitability for any purpose. */ #include #include int main() { boost::array a; boost::array b; // access elements via index (which should do nothing) for (unsigned i=1; i::const_iterator pos; for (pos=b.begin(); pos!=b.end(); ++pos) { std::cout << "oops" << std::endl; } }