Boost C++ Libraries: Ticket #6747: Circular_Buffer / Bounded_Buffer inside Template class problem https://svn.boost.org/trac10/ticket/6747 <p> I am trying to create an instance of: </p> <pre class="wiki">circular_buffer&lt;ARRAY_TYPE&gt; buffer (ARRAY_LENGTH); </pre><p> inside of the following class: </p> <pre class="wiki">template &lt;class ARRAY_TYPE, unsigned int ARRAY_LENGTH&gt; class SmartArray { private: </pre><p> but I keep getting: </p> <pre class="wiki">error C2061: syntax error : identifier "ARRAY_LENGTH" see reference to class template instantiation 'SmartArray&lt;ARRAY...etc' </pre><p> leaving off the (ARRAY_LENGTH) or doing something like (decltype(ARRAY_LENGTH)) stops this error but just causes other errors </p> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/6747 Trac 1.4.3 viboes Mon, 28 May 2012 17:20:14 GMT component changed; owner set https://svn.boost.org/trac10/ticket/6747#comment:1 https://svn.boost.org/trac10/ticket/6747#comment:1 <ul> <li><strong>owner</strong> set to <span class="trac-author">Jan Gaspar</span> </li> <li><strong>component</strong> <span class="trac-field-old">None</span> → <span class="trac-field-new">circular_buffer</span> </li> </ul> Ticket anonymous Mon, 28 May 2012 20:44:10 GMT <link>https://svn.boost.org/trac10/ticket/6747#comment:2 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6747#comment:2</guid> <description> <p> Not sure this is a circular_buffer bug. Does it work if you substitute circular_buffer with std::vector? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Tue, 21 May 2013 17:52:48 GMT</pubDate> <title>description changed https://svn.boost.org/trac10/ticket/6747#comment:3 https://svn.boost.org/trac10/ticket/6747#comment:3 <ul> <li><strong>description</strong> modified (<a href="/trac10/ticket/6747?action=diff&amp;version=3">diff</a>) </li> </ul> Ticket viboes Tue, 21 May 2013 18:07:03 GMT <link>https://svn.boost.org/trac10/ticket/6747#comment:4 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6747#comment:4</guid> <description> <p> I don't see where circular_buffer is used in your code. Please, could you show more code? </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sun, 09 Jun 2013 21:20:05 GMT</pubDate> <title/> <link>https://svn.boost.org/trac10/ticket/6747#comment:5 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/6747#comment:5</guid> <description> <p> Ping !!! </p> </description> <category>Ticket</category> </item> <item> <dc:creator>viboes</dc:creator> <pubDate>Sun, 09 Jun 2013 21:20:19 GMT</pubDate> <title>owner, status changed https://svn.boost.org/trac10/ticket/6747#comment:6 https://svn.boost.org/trac10/ticket/6747#comment:6 <ul> <li><strong>owner</strong> changed from <span class="trac-author">Jan Gaspar</span> to <span class="trac-author">viboes</span> </li> <li><strong>status</strong> <span class="trac-field-old">new</span> → <span class="trac-field-new">assigned</span> </li> </ul> Ticket viboes Sun, 07 Jul 2013 01:12:04 GMT status changed; resolution set https://svn.boost.org/trac10/ticket/6747#comment:7 https://svn.boost.org/trac10/ticket/6747#comment:7 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> <li><strong>resolution</strong> → <span class="trac-field-new">invalid</span> </li> </ul> <p> Please reopen it when the requested information is provided (code, compiler error, ...) </p> Ticket