/** * @file LinkedElementDecorator.h * @brief This file defines the LinkedElementDecorator class. * @date 22.07.2014 * @author baetz */ #ifndef LINKEDELEMENTDECORATOR_H_ #define LINKEDELEMENTDECORATOR_H_ #include #include //TODO: This generates multiple inheritance from non-IF parents. template class LinkedElementDecorator : public LinkedElement, public T { public: template LinkedElementDecorator(Args... args) : LinkedElement(this), T(std::forward(args)...) { } virtual ~LinkedElementDecorator() { } }; #endif /* LINKEDELEMENTDECORATOR_H_ */