I have two scripts attached. The first is WriteTreeWithMap.C and it writes a very simple tree with one branch that should be an std::map. The other script is ReadTreeWithMap.C which reads the tree made by the first script.
My problem is that I can access the map and iterate over all of its members but I can’t actually use the keys to access the values (i.e. map[key] causes a crash instead of delivering the value). Where am I going wrong?