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:
parent
a86d7d51f3
commit
41cf9e0324
1 changed files with 3 additions and 2 deletions
|
@ -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 );
|
||||
|
|
Loading…
Reference in a new issue