Browse Source

Fixed initialization of pointer issues in MSVC10

master
Artyom Beilis 8 years ago
parent
commit
ebc74ea7b1
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      private/hash_map.h

+ 2
- 2
private/hash_map.h View File

@@ -203,7 +203,7 @@ public:

std::pair<iterator,bool> insert(value_type const &entry)
{
std::pair<iterator,bool> r(0,false);
std::pair<iterator,bool> r(iterator(),false);
rehash_if_needed();
range_type &range=get(entry.first);
iterator p = find_in_range(range,entry.first);
@@ -307,7 +307,7 @@ public:
void rehash(size_t new_size)
{
basic_map tmp;
tmp.hash_.resize(new_size,range_type(0,0));
tmp.hash_.resize(new_size,range_type(iterator(),iterator()));
while(list_.begin) {
iterator p=list_.begin;
list_.erase(p);


Loading…
Cancel
Save