code.cpp 241 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 #include <iostream> #include <memory> using namespace std; #include "ival_box.h" unique_ptr<Ival_box> ivalBoxFactory(); void fun() { auto s = ivalBoxFactory(); s->reset_value(12); s->prompt(); cout << s->get_value() << endl; };