Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
async: client: avoid ambiguous base-class error
When using multiple generated client classes with client_t, we can end up with an ambiguous base-class error. Change the way the `client_context_friend` utility derives the context pointer from the `Client` template type, to avoid the ambiguity. Previous failure when inheriting both `state::BMC` and `state::Host` into a single `client_t`: ``` error: 'sdbusplus::async::client::details::client_context_friend' is an ambiguous base of 'sdbusplus::async::client::client<true, true, false, sdbusplus::client::xyz::openbmc_project::state::BMC, sdbusplus::client::xyz::openbmc_project::state::Host>' return static_cast<T*>(this)->ctx; ``` Signed-off-by: Patrick Williams <[email protected]> Change-Id: I047f00ca8df071eef13e8fdd71a56910cc7b3e26
- Loading branch information