MCPcopy Create free account
hub / github.com/boost-ext/di / multiple_interfaces

Method multiple_interfaces

example/multiple_interfaces.cpp:27–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25class multiple_interfaces {
26 public:
27 multiple_interfaces(const std::shared_ptr<interface1>& interface1_, const std::shared_ptr<interface2>& interface2_) {
28 assert(dynamic_cast<implementation*>(interface1_.get()));
29 assert(dynamic_cast<implementation*>(interface2_.get()));
30 assert(static_cast<implementation*>(interface1_.get()) == static_cast<implementation*>(interface2_.get()));
31 }
32};
33
34int main() {

Callers

nothing calls this directly

Calls 1

getMethod · 0.45

Tested by

no test coverage detected