/* 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 #include #include #include int main() { // array of arrays of seasons boost::array,2> seasons_i18n = { { { { "spring", "summer", "autumn", "winter", } }, { { "Fruehling", "Sommer", "Herbst", "Winter" } } } }; // for any array of seasons print seasons for (unsigned i=0; i seasons = seasons_i18n[i]; for (unsigned j=0; j