24 #include <graphlab/util/generics/any.hpp>
33 static any::registry_map_type global_registry;
34 return global_registry;
40 registry_map_type& global_registry = get_global_registry();
43 registry_map_type::const_iterator iter = global_registry.find(idload);
44 if(iter == global_registry.end()) {
46 <<
"Cannot load object with hashed type [" << idload
47 <<
"] from stream!" << std::endl
48 <<
"\t A possible cause of this problem is that the type"
50 <<
"\t is never explicity used in this program.\n\n" << std::endl;
55 return iter->second(arc);
62 std::ostream& operator<<(std::ostream& out,
const graphlab::any& any) {
63 return any.print(out);