D
DFP
I am posting the gcc 3.3.2 compiler error and the source lines below
them. Please explain this warning and how to fix it.
crt/crtmap.hpp:17: warning: `std::map<K, D, C,
std::allocator<std:air<const
_Key, _Tp> > >::iterator' is implicitly a typename
crt/crtmap.hpp:17: warning: implicit typename is deprecated, please see the
documentation for details
crt/crtmap.hpp:18: warning: `std::map<K, D, C,
std::allocator<std:air<const
_Key, _Tp> > >::const_iterator' is implicitly a typename
crt/crtmap.hpp:18: warning: implicit typename is deprecated, please see the
documentation for details
----------------
Here is the offending code:
template <class K,class D,class C>
class CRTMap
{
private:
mutable std::map<K,D,C> mymap;
mutable CRTMLock MLock;
public:
typedef std::map<K,D,C>::iterator iterator; //// Line 17
typedef std::map<K,D,C>::const_iterator const_iterator; //// Line 18
inline CRTMap(void)
{
}
[...]
them. Please explain this warning and how to fix it.
crt/crtmap.hpp:17: warning: `std::map<K, D, C,
std::allocator<std:air<const
_Key, _Tp> > >::iterator' is implicitly a typename
crt/crtmap.hpp:17: warning: implicit typename is deprecated, please see the
documentation for details
crt/crtmap.hpp:18: warning: `std::map<K, D, C,
std::allocator<std:air<const
_Key, _Tp> > >::const_iterator' is implicitly a typename
crt/crtmap.hpp:18: warning: implicit typename is deprecated, please see the
documentation for details
----------------
Here is the offending code:
template <class K,class D,class C>
class CRTMap
{
private:
mutable std::map<K,D,C> mymap;
mutable CRTMLock MLock;
public:
typedef std::map<K,D,C>::iterator iterator; //// Line 17
typedef std::map<K,D,C>::const_iterator const_iterator; //// Line 18
inline CRTMap(void)
{
}
[...]