Well, one problem with my code was that it referred to the non-existen ptr_container template, instead of ptr_map.