Subject: [Boost-bugs] [Boost C++ Libraries] #6747: Circular_Buffer / Bounded_Buffer inside Template class problem
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2012-03-30 11:46:42
#6747: Circular_Buffer / Bounded_Buffer inside Template class problem
---------------------------------------------------------------+------------
Reporter: Koutsunis Prater <Koutsunis.Prater@â¦> | Type: Bugs
Status: new | Milestone: To Be Determined
Component: None | Version: Boost 1.49.0
Severity: Problem | Keywords:
---------------------------------------------------------------+------------
I am trying to create an instance of:
circular_buffer<ARRAY_TYPE> buffer (ARRAY_LENGTH);
inside of the following class:
template <class ARRAY_TYPE, unsigned int ARRAY_LENGTH>
class SmartArray
{
private:
but I keep getting:
error C2061: syntax error : identifier "ARRAY_LENGTH"
see reference to class template instantiation 'SmartArray<ARRAY...etc'
leaving off the (ARRAY_LENGTH) or doing something like
(decltype(ARRAY_LENGTH)) stops this error but just causes other errors
-- Ticket URL: <https://svn.boost.org/trac/boost/ticket/6747> Boost C++ Libraries <http://www.boost.org/> Boost provides free peer-reviewed portable C++ source libraries.
This archive was generated by hypermail 2.1.7 : 2017-02-16 18:50:09 UTC