This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
"typename <> is implicitly a typename" - help
- From: Chris Croswhite <ccroswhite at get2chip dot com>
- To: gcc-help at gcc dot gnu dot org
- Cc: ccroswhite at get2chip dot com
- Date: 04 Sep 2002 11:22:02 -0700
- Subject: "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