Minor changes for Visual Studio.

git-svn-id: svn://svn.code.sf.net/p/loki-lib/code/trunk@1128 7ec92016-0320-0410-acc4-a06ded1c099a
This commit is contained in:
rich_sposato 2011-10-03 04:00:22 +00:00
parent a86d7d51f3
commit 41cf9e0324

View file

@ -153,8 +153,9 @@ namespace Loki
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 );