Permalink
Browse files

SF patch 120

SF Patch #120 The ExpireLRUCache does not compile with a tuple as key on
Visual Studio 2010
https://sourceforge.net/p/poco/patches/120/
  • Loading branch information...
1 parent b9acb9f commit d391de9ddf4277cc4f0f32394e94e698fea863d7 @aleks-f aleks-f committed Dec 3, 2012
Showing with 12 additions and 3 deletions.
  1. +8 −1 .gitignore
  2. +4 −2 Foundation/include/Poco/ExpireStrategy.h
View
@@ -14,6 +14,11 @@
*.a
*.d
+# Make #
+########
+config.build
+config.make
+
# Packages #
############
# it's better to unpack these files and commit the raw source
@@ -29,9 +34,11 @@
# Logs and databases #
######################
-*.log
+*.log*
*.sqlite
*.db
+test*.txt
+XML/testsuite/rss.xml
# OS generated files #
######################
@@ -82,8 +82,10 @@ class ExpireStrategy: public AbstractStrategy<TKey, TValue>
void onAdd(const void*, const KeyValueArgs <TKey, TValue>& args)
{
Timestamp now;
- IndexIterator it = _keyIndex.insert(typename TimeIndex::value_type(now, args.key()));
- std::pair<Iterator, bool> stat = _keys.insert(typename Keys::value_type(args.key(), it));
+ typename TimeIndex::value_type tiValue(now, args.key());
+ IndexIterator it = _keyIndex.insert(tiValue);
+ typename Keys::value_type kValue(args.key(), it);
+ std::pair<Iterator, bool> stat = _keys.insert(kValue);
if (!stat.second)
{
_keyIndex.erase(stat.first->second);

0 comments on commit d391de9

Please sign in to comment.