| 34 | StatefulEffect::~StatefulEffect() = default; |
| 35 | |
| 36 | std::shared_ptr<EffectInstance> StatefulEffect::MakeInstance() const |
| 37 | { |
| 38 | // Cheat with const-cast to return an object that calls through to |
| 39 | // non-const methods of a stateful effect. |
| 40 | // Stateless effects should override this function and be really const |
| 41 | // correct. |
| 42 | return std::make_shared<Instance>(const_cast<StatefulEffect&>(*this)); |
| 43 | } |
no outgoing calls
no test coverage detected