| 65 | |
| 66 | template<typename Protocol> |
| 67 | instance_t endpoint_impl<Protocol>::get_instance(service_t _service) { |
| 68 | |
| 69 | instance_t its_instance(0xFFFF); |
| 70 | |
| 71 | auto its_host = endpoint_host_.lock(); |
| 72 | if (its_host) |
| 73 | its_instance = its_host->find_instance(_service, this); |
| 74 | |
| 75 | return its_instance; |
| 76 | } |
| 77 | |
| 78 | // Instantiate template |
| 79 | #if defined(__linux__) || defined(__QNX__) |
no test coverage detected