diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2011-05-06 15:35:19 -0400 |
---|---|---|
committer | Kohei Yoshida <kyoshida@novell.com> | 2011-05-06 15:35:19 -0400 |
commit | 69a290dd646eb7147a7ffbf52dd02faa21f09a93 (patch) | |
tree | 8d34e3d2e7af6ee945c25f0acac22c05f3665a90 /sc/inc/dpobject.hxx | |
parent | a1749730513d3e6a1c96e7f527dd08a6743999d6 (diff) |
Explicitly specify less function object for map, to get it to build with MSVC.
Diffstat (limited to 'sc/inc/dpobject.hxx')
-rw-r--r-- | sc/inc/dpobject.hxx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/sc/inc/dpobject.hxx b/sc/inc/dpobject.hxx index 30ca8406d11e..d71040906443 100644 --- a/sc/inc/dpobject.hxx +++ b/sc/inc/dpobject.hxx @@ -297,6 +297,11 @@ public: ::rtl::OUString maDBName; ::rtl::OUString maCommand; DBType(sal_Int32 nSdbType, const ::rtl::OUString& rDBName, const ::rtl::OUString& rCommand); + + struct less : public ::std::binary_function<DBType, DBType, bool> + { + bool operator() (const DBType& left, const DBType& right) const; + }; }; /** @@ -304,7 +309,7 @@ public: */ class DBCaches { - typedef ::boost::ptr_map<DBType, ScDPCache> CachesType; + typedef ::boost::ptr_map<DBType, ScDPCache, DBType::less> CachesType; CachesType maCaches; ScDocument* mpDoc; public: |