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]

Bug? If not what is the issue?


I'm working on porting some code from a Windows app to Mac OSX and am getting a warning I don't understand. The warning is as follows:

<x-tad-smaller>/Users/mark/MacViewer/include/Hashtable.h:14: warning: specializing `struct __gnu_cxx::hash<Object>' in different namespace
/usr/include/gcc/darwin/3.3/c++/ext/stl_hash_fun.h:71: warning: from definition of `template<class _Key> struct __gnu_cxx::hash'

</x-tad-smaller>
The code in question causing this is:

struct __gnu_cxx::hash<Object>
{
size_t const Object& obj) const {
return obj->hashcode();
}
};

It seems to me its saying __gnu_cxx is not the same namespace as __gnu_cxx! If this is not the case and the warning is down to something I'm not seeing what is it?

Thanks
Mark

gcc 3.3.20030304 on Darwin 7.2.0 (OSX 10.3.2)

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