/* * $Rev: 5260 $ * Author: Jesse Perla (c) 2010 * Use, modification and distribution are subject to the * Boost Software License, Version 1.0. (See accompanying file * LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt) */ #pragma warning(disable:4996) #include int main(int argc, char* argv[]) { boost::multi_array f_values(boost::extents[5][6][7]); //A boost::multidimensional object boost::detail::multi_array::sub_array sub_f = f_values[2]; //Works boost::multi_array sub_f2 = f_values[2]; //Fails, used to work }