Changes between Initial Version and Version 3 of Ticket #6747


Ignore:
Timestamp:
May 21, 2013, 5:52:48 PM (9 years ago)
Author:
viboes
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #6747

    • Property Owner set to Jan Gaspar
    • Property Component Nonecircular_buffer
  • Ticket #6747 – Description

    initial v3  
    11I am trying to create an instance of:
    22
     3
     4{{{
    35circular_buffer<ARRAY_TYPE> buffer (ARRAY_LENGTH);
     6}}}
     7
    48
    59inside of the following class:
    610
     11
     12{{{
    713template <class ARRAY_TYPE, unsigned int ARRAY_LENGTH>
    814class SmartArray
     
    1016private:
    1117
     18}}}
     19
    1220but I keep getting:
    1321
     22
     23{{{
    1424error C2061: syntax error : identifier "ARRAY_LENGTH"
    1525see reference to class template instantiation 'SmartArray<ARRAY...etc'
     26}}}
     27
    1628
    1729leaving off the (ARRAY_LENGTH) or doing something like (decltype(ARRAY_LENGTH)) stops this error but just causes other errors