| 141 | |
| 142 | template<class I> |
| 143 | bool InsertInterfaceType(InterfaceMap& im, I* i) |
| 144 | { |
| 145 | if (us_service_interface_iid<I>().empty()) |
| 146 | { |
| 147 | throw ServiceException(std::string("The interface class ") + typeid(I).name() + |
| 148 | " uses an invalid id in its US_DECLARE_SERVICE_INTERFACE macro call."); |
| 149 | } |
| 150 | im.insert(std::make_pair(std::string(us_service_interface_iid<I>()), |
| 151 | static_cast<void*>(static_cast<I*>(i)))); |
| 152 | return true; |
| 153 | } |
| 154 | |
| 155 | template<> |
| 156 | inline bool InsertInterfaceType<void>(InterfaceMap&, void*) |
no test coverage detected