|
From: <ric...@us...> - 2011-10-03 04:00:29
|
Revision: 1128
http://loki-lib.svn.sourceforge.net/loki-lib/?rev=1128&view=rev
Author: rich_sposato
Date: 2011-10-03 04:00:22 +0000 (Mon, 03 Oct 2011)
Log Message:
-----------
Minor changes for Visual Studio.
Modified Paths:
--------------
trunk/include/loki/AssocVector.h
Modified: trunk/include/loki/AssocVector.h
===================================================================
--- trunk/include/loki/AssocVector.h 2011-09-30 23:16:08 UTC (rev 1127)
+++ trunk/include/loki/AssocVector.h 2011-10-03 04:00:22 UTC (rev 1128)
@@ -153,8 +153,9 @@
typedef ::std::map< K, V, C, A > TempMap;
typedef ::std::back_insert_iterator< Base > MyInserter;
MyCompare & me = *this;
- // Make a temporary map similar to this type to prevent any duplicates elements.
- TempMap temp( first, last, me, alloc );
+ const A tempAlloc;
+ // Make a temporary map similar to this type to prevent any duplicate elements.
+ TempMap temp( first, last, me, tempAlloc );
Base::reserve( temp.size() );
BaseType & target = static_cast< BaseType & >( *this );
MyInserter myInserter = ::std::back_inserter( target );
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|