Apache OpenOffice (AOO) Bugzilla – Full Text Issue Listing |
Summary: | IRIX: sfx2 - Specializing class "std::hash<SfxConfigManager *>" requires "template<>" | ||
---|---|---|---|
Product: | porting | Reporter: | nickb |
Component: | code | Assignee: | sander_traveling |
Status: | CLOSED DUPLICATE | QA Contact: | issues@porting <issues> |
Severity: | Trivial | ||
Priority: | P3 | CC: | issues |
Version: | OOo 1.1 RC | ||
Target Milestone: | OOo 1.1.1 | ||
Hardware: | SGI | ||
OS: | IRIX | ||
Issue Type: | DEFECT | Latest Confirmation in: | --- |
Developer Difficulty: | --- | ||
Issue Depends on: | |||
Issue Blocks: | 809 |
Description
nickb
2003-08-01 08:22:06 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....! 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 |