Issue 17744 - IRIX: sfx2 - Specializing class "std::hash<SfxConfigManager *>" requires "template<>"
Summary: IRIX: sfx2 - Specializing class "std::hash<SfxConfigManager *>" requires "tem...
Status: CLOSED DUPLICATE of issue 21906
Alias: None
Product: porting
Classification: Code
Component: code (show other issues)
Version: OOo 1.1 RC
Hardware: SGI IRIX
: P3 Trivial (vote)
Target Milestone: OOo 1.1.1
Assignee: sander_traveling
QA Contact: issues@porting
URL:
Keywords:
Depends on:
Blocks: 809
  Show dependency tree
 
Reported: 2003-08-01 08:22 UTC by nickb
Modified: 2004-02-27 13:06 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description nickb 2003-08-01 08:22:06 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
Comment 1 nickb 2003-08-01 08:27:42 UTC
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....!
Comment 2 nickb 2003-08-04 00:31:34 UTC
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.
Comment 3 Martin Hollmichel 2003-08-07 15:56:43 UTC
set target milestone to 1.1.1
Comment 4 Martin Hollmichel 2003-10-17 08:21:26 UTC
reassigned.
Comment 5 sander_traveling 2003-12-04 04:10:28 UTC
tbxcust.cxx fix is already present in fix for 21906



*** This issue has been marked as a duplicate of 21906 ***
Comment 6 Martin Hollmichel 2004-02-27 13:06:47 UTC
close issue