Opened 11 years ago
Closed 9 years ago
#6747 closed Bugs (invalid)
Circular_Buffer / Bounded_Buffer inside Template class problem
| Reported by: | Owned by: | viboes | |
|---|---|---|---|
| Milestone: | To Be Determined | Component: | circular_buffer |
| Version: | Boost 1.49.0 | Severity: | Problem |
| Keywords: | Cc: |
Description (last modified by )
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
Change History (7)
comment:1 by , 10 years ago
| Component: | None → circular_buffer |
|---|---|
| Owner: | set to |
comment:2 by , 10 years ago
comment:3 by , 9 years ago
| Description: | modified (diff) |
|---|
comment:4 by , 9 years ago
I don't see where circular_buffer is used in your code. Please, could you show more code?
comment:6 by , 9 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
comment:7 by , 9 years ago
| Resolution: | → invalid |
|---|---|
| Status: | assigned → closed |
Please reopen it when the requested information is provided (code, compiler error, ...)
Note:
See TracTickets
for help on using tickets.

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