"typename <> is implicitly a typename" - help

Chris Croswhite ccroswhite@get2chip.com
Wed Sep 4 11:22:00 GMT 2002


Hello,

Using 3.2 on Linux (2.4.18), I am having difficulties in understanding
this warning message:

../include/garray.h:527: warning: `typename
GArray<T>::ProcessElemFunc_t' is implicitly a typename


Here is where the warning is coming from:

/// 'Growable array' template class
template <typename Elem_t>
class GArray{
public:
  /// 'Process element' function type
  typedef void (*ProcessElemFunc_t)(Elem_t);

  GArray(
    ProcessElemFunc_t newClearElemFunc = NULL
    ///< Element clean up function
  );

  GArray(
    int size,
    ///< Preallocated number of elements
    ProcessElemFunc_t newClearElemFunc = NULL
    ///< Element clean up function
  );
...


As I a new to c++, can someone point me in the right direction to
understand this warning.  Also, I have been using 2.953 and do not see
this warning.  Please cc my email, as I am not on this mailing list.

TIA,
Chris





More information about the Gcc-help mailing list