19template<
typename T,
typename Container,
typename Key>
20void logBadAnyCast(
const std::bad_any_cast& e,
const Key& key,
const Container& data)
22 std::cerr <<
"bad_any_cast: key='" << key <<
"', requested='" <<
demangle(
typeid(T).
name())
23 <<
"', actual='" <<
demangle(data.at(key).type().name()) <<
"': " << e.what() <<
"\n";
Integer types used throughout NeoN.
std::string demangle(const char *mangledName)
const std::string & name(const NeoN::Document &doc)
Retrieves the name of a Document.
void logBadAnyCast(const std::bad_any_cast &e, const Key &key, const Container &data)