This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

"typename <> is implicitly a typename" - help


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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]