Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

SF patch 120

SF #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...
commit a54c34e7d0746bba6cf8b8a53ea7845d3cf5fee6 1 parent 134558f
@aleks-f aleks-f authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 Foundation/include/Poco/ExpireStrategy.h
View
6 Foundation/include/Poco/ExpireStrategy.h
@@ -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);
Please sign in to comment.
Something went wrong with that request. Please try again.