Modify

Ticket #6747 (closed Bugs: invalid)

Opened 3 years ago

Last modified 20 months ago

Circular_Buffer / Bounded_Buffer inside Template class problem

Reported by: Koutsunis Prater <Koutsunis.Prater@…> Owned by: viboes
Milestone: To Be Determined Component: circular_buffer
Version: Boost 1.49.0 Severity: Problem
Keywords: Cc:

Description (last modified by viboes) (diff)

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

Attachments

Change History

comment:1 Changed 3 years ago by viboes

  • Owner set to jano_gaspar
  • Component changed from None to circular_buffer

comment:2 Changed 3 years ago by anonymous

Not sure this is a circular_buffer bug. Does it work if you substitute circular_buffer with std::vector?

comment:3 Changed 22 months ago by viboes

  • Description modified (diff)

comment:4 Changed 22 months ago by viboes

I don't see where circular_buffer is used in your code. Please, could you show more code?

comment:5 Changed 21 months ago by viboes

Ping !!!

comment:6 Changed 21 months ago by viboes

  • Owner changed from jano_gaspar to viboes
  • Status changed from new to assigned

comment:7 Changed 20 months ago by viboes

  • Status changed from assigned to closed
  • Resolution set to invalid

Please reopen it when the requested information is provided (code, compiler error, ...)

View

Add a comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
The resolution will be deleted. Next status will be 'reopened'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.