Re: [Boost-bugs] [Boost C++ Libraries] #6747: Circular_Buffer / Bounded_Buffer inside Template class problem

Subject: Re: [Boost-bugs] [Boost C++ Libraries] #6747: Circular_Buffer / Bounded_Buffer inside Template class problem
From: Boost C++ Libraries (noreply_at_[hidden])
Date: 2013-05-21 17:52:48


#6747: Circular_Buffer / Bounded_Buffer inside Template class problem
----------------------------------------------------------------+-----------
  Reporter: Koutsunis Prater <Koutsunis.Prater@…> | Owner: jano_gaspar
      Type: Bugs | Status: new
 Milestone: To Be Determined | Component: circular_buffer
   Version: Boost 1.49.0 | Severity: Problem
Resolution: | Keywords:
----------------------------------------------------------------+-----------
Description changed by viboes:

Old description:

> 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

New description:

 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#comment:3>
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:13 UTC