Apache OpenOffice (AOO) Bugzilla – Issue 17744
IRIX: sfx2 - Specializing class "std::hash<SfxConfigManager *>" requires "template<>"
Last modified: 2004-02-27 13:06:47 UTC
CC -c -I. -I. -I../inc -I../../inc -I../../unx/inc -I../../unxirxm3.pro/inc -I. -I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/solver/645/unxirxm3.pro/inc/stl -I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/solver/645/unxirxm3.pro/inc/external -I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/solver/645/unxirxm3.pro/inc -I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/solenv/unxirxm3/inc -I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/solenv/inc -I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/res -I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/solver/645/unxirxm3.pro/inc/stl -I/build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/solenv/inc/Xp31 -I/usr/java2/include -I/usr/java2/include/irix -I/usr/java2/include/native_threads/include -I. -I../../res -I. -O2 -LANG:ansi-for-init-scope=OFF -LANG:std -LANG:libc_in_namespace_std=ON -LANG:exceptions=ON -KPIC -DIRIX -DUNX -DVCL -DC730 -DC730 -DMIPS -DCVER=C730 -D_USE_NAMESPACE -DSTLPORT_VERSION=0x450 -D_USE_NAMESPACE=1 -DNEW_SOLAR -DSGI_STL -D__STL_THROW_RANGE_ERRORS -D__DMAKE -DUNIX -DCPPU_ENV=MipsPro -DSUPD=645 -DBUILD=8639 -DPRODUCT -DNDEBUG -DPRODUCT_FULL -DOSL_DEBUG_LEVEL=0 -DOPTIMIZE -DEXCEPTIONS_ON -DCUI -DSOLAR_JAVA -DSRX645 -DSHAREDLIB -D_DLL_ -DMULTITHREAD -w -o ../../unxirxm3.pro/slo/tbxcust.o /build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/sfx2/source/toolbox/tbxcust.cxx cc-3229 CC: ERROR File = /build1/nickb/openoffice/workarea/11rc/oo_1.1rc_src/sfx2/source/toolbox/tbxcust.cxx, Line = 585 Specializing class "std::hash<SfxConfigManager *>" requires "template<>" syntax. struct std::hash< SfxConfigManager* > ^ This is almost exactly the same as 17677
This worked: --- source/toolbox/tbxcust.cxx 15 May 2003 10:54:28 -0000 1.27 +++ source/toolbox/tbxcust.cxx 1 Aug 2003 07:27:21 -0000 @@ -120,6 +120,8 @@ #include "objsh.hxx" #include "viewfrm.hxx" +#include <svtools/sbx.hxx> + using namespace ::com::sun::star::lang; using namespace ::com::sun::star::ui::dialogs; using namespace ::com::sun::star::uno; @@ -580,10 +582,17 @@ return 0; } +#if 0 struct std::hash< SfxConfigManager* > { size_t operator()(const SfxConfigManager* __s) const { return (size_t)__s; } }; +#else +struct myhash +{ + size_t operator()(const SfxConfigManager* __s) const { return (size_t)__s; } +}; +#endif struct SfxConfigManagerPtrEqual { Although since I never USED myhash, I have to wonder why....!
Ok, so with this change I get a pre-linker error. Obviously I NEED to use myhash somewhere. So, changed: typedef std::hash_map< SfxConfigManager*, bool, std::hash< SfxConfigManager * >, SfxConfigManagerPtrEqual > SfxCfgMgrMap; to typedef std::hash_map< SfxConfigManager*, bool, myhash, SfxConfigManagerPtrEqual > SfxCfgMgrMap; That fixed it.
set target milestone to 1.1.1
reassigned.
tbxcust.cxx fix is already present in fix for 21906 *** This issue has been marked as a duplicate of 21906 ***
close issue