hash_map

From: Jon Cosby (qwerty_at_abc.net)
Date: 11/30/03


Date: Sun, 30 Nov 2003 17:06:29 GMT

I need help in hashmaps. Why doesn't this work:

    #include <hash_map>

    hash_map <int, string> hm1;
    typedef pair <int, string> pr;
    hm1.insert(str_pair(1, "Hello"));

It compiles, but crashes at runtime, pointing to something in xhash.

-- 
Jon Cosby
Please do not reply to this email address.


Relevant Pages

  • Re: hash_map
    ... > It compiles, but crashes at runtime, pointing to something in xhash. ...
    (comp.lang.cpp)
  • Re: hash_map
    ... >> It compiles, but crashes at runtime, pointing to something in xhash. ... That was a typo. ...
    (comp.lang.cpp)
  • Memory corruption and Dump Stack trace
    ... my application has danging pointer, either pointing at something ... or the memory was used by someone else. ... crashes very randomly and thus hard to reproduce the crash. ...
    (microsoft.public.vc.mfc)
  • Re: Fly It to the Ground
    ... I'm just pointing out that 9Gs vertical isn't all that ... bad either, as crashes go. ... Off the top of my head, don't the current Part 23 regulations require seats ... that can sustain over 20Gs? ...
    (rec.aviation.piloting)