Changes between Initial Version and Version 3 of Ticket #6747
- Timestamp:
- May 21, 2013, 5:52:48 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #6747
- Property Owner set to
- Property Component None → circular_buffer
-
Ticket #6747 – Description
initial v3 1 1 I am trying to create an instance of: 2 2 3 4 {{{ 3 5 circular_buffer<ARRAY_TYPE> buffer (ARRAY_LENGTH); 6 }}} 7 4 8 5 9 inside of the following class: 6 10 11 12 {{{ 7 13 template <class ARRAY_TYPE, unsigned int ARRAY_LENGTH> 8 14 class SmartArray … … 10 16 private: 11 17 18 }}} 19 12 20 but I keep getting: 13 21 22 23 {{{ 14 24 error C2061: syntax error : identifier "ARRAY_LENGTH" 15 25 see reference to class template instantiation 'SmartArray<ARRAY...etc' 26 }}} 27 16 28 17 29 leaving off the (ARRAY_LENGTH) or doing something like (decltype(ARRAY_LENGTH)) stops this error but just causes other errors