Boost C++ Libraries: Ticket #3223: number of dimensions as static constant https://svn.boost.org/trac10/ticket/3223 <p> multi_array and friends should provide the number of dimensions as a static member constant, so it is available at compile time and can be used in generic programming. I assume the num_dimensions() non-static member function was put in the design with the idea that the number of dimensions of a multi_array object might be dynamically changed. But since the multi array concept and classes doen't support changing the number of dimensions, it doesn't provide anything useful over a static constant. </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/3223 Trac 1.4.3 Frank Mori Hess Wed, 22 Jul 2009 12:47:43 GMT <link>https://svn.boost.org/trac10/ticket/3223#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3223#comment:1</guid> <description> <p> As was pointed out to me on the mailing list, the number of dimensions is available as the member constant "dimensionality". However, this is only documented in the <a class="missing wiki">MultiArray</a> concept. It is missing from the synopses of the multi_array classes in the reference documentation. </p> </description> <category>Ticket</category> </item> <item> <dc:creator>Ronald Garcia</dc:creator> <pubDate>Fri, 13 Jan 2012 15:48:06 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/3223#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/3223#comment:2</guid> <description> <p> Fixed on the trunk. </p> </description> <category>Ticket</category> </item> </channel> </rss>