#include "Dummy_bis.h" #include using namespace std; template Dummy::Dummy(const T& data) { data_ = new T(data); } template Dummy::~Dummy() { delete data_; } template void Dummy::print() const { cout << "Dummy::print() with type T = " << typeid(T).name() << ", *data_: " << *data_ << endl; }