| 33 | { |
| 34 | |
| 35 | void |
| 36 | ThrowBadAnyCastException(std::string const& funcName, |
| 37 | std::type_info const& source, |
| 38 | std::type_info const& target) |
| 39 | { |
| 40 | std::string msg("cppmicroservices::BadAnyCastException: "); |
| 41 | std::string targetTypeName(GetDemangledName(target)); |
| 42 | std::string sourceTypeName(GetDemangledName(source)); |
| 43 | msg += funcName + ": Failed to convert from cppmicroservices::Any type " + sourceTypeName |
| 44 | + " to target type " + targetTypeName; |
| 45 | throw BadAnyCastException(msg); |
| 46 | } |
| 47 | } // namespace detail |
| 48 | |
| 49 | std::ostream& |
no test coverage detected