#include #include #include #include "value.hpp" using namespace std; void print_pair(DerivedPair p){ pair pr = p.get_value(); cout << "(" << pr.first << ", " << pr.second << ")\n"; } int main(int argc, const char* argv[]){ /* Value v; */ double x = 12; double y = 12; ObservedValue x_val(&x); ObservedValue y_val(&y); DerivedPair dp(&x_val, &y_val); print_pair(dp); x = 2; y = 2; print_pair(dp); ContainerVector cont(&x_val); x = 12; cont.fill(); x = 2; cont.fill(); auto *container = cont.get_container(); for( auto v: *container ) cout << v << ", "; cout << endl; /* ValA val; */ /* val.reset(); */ /* Address x = val.get_value(); */ /* cout << "Hello World " << x.street_address << "\n"; */ /* x = val.get_value(); */ /* cout << "Hello World " << x.street_address << "\n"; */ }