Bug? If not what is the issue?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux